srv/poe_manager/app.py aktualisiert

This commit is contained in:
2025-10-07 23:00:47 +02:00
parent cce1de034a
commit 1a5ba7b0ae

View File

@@ -223,7 +223,7 @@ def devices():
WHERE mac=? WHERE mac=?
""", (switch_hostname, old_mac)) """, (switch_hostname, old_mac))
conn.commit() 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}")
except sqlite3.IntegrityError: except sqlite3.IntegrityError:
flash("Fehler beim Ändern des Switch!") flash("Fehler beim Ändern des Switch!")
return redirect(url_for('devices')) return redirect(url_for('devices'))