srv/poe_manager/app.py aktualisiert
This commit is contained in:
@@ -239,7 +239,7 @@ def devices():
|
||||
WHERE mac=?
|
||||
""", (switch_hostname, old_mac))
|
||||
conn.commit()
|
||||
flash(f"Switch von {device_name} geändert: {old_switch} → {switch_hostname}")
|
||||
flash(f"Switch von {device_name} geändert: {old_switch} → {switch_hostname} or 'kein Switch'")
|
||||
except sqlite3.IntegrityError:
|
||||
flash("Fehler beim Ändern des Switch!")
|
||||
return redirect(url_for('devices'))
|
||||
|
||||
Reference in New Issue
Block a user