BE+FE: work on bulk deleting devices and code cleanup #1493

Signed-off-by: jokob-sk <jokob.sk@gmail.com>
This commit is contained in:
jokob-sk
2026-02-07 10:37:31 +11:00
parent 6bc2de6e24
commit 0ce4e5f70c
8 changed files with 41 additions and 60 deletions

View File

@@ -171,7 +171,7 @@ class DeviceInstance:
conn = get_temp_db_connection()
cur = conn.cursor()
if not macs:
if macs is None:
# No MACs provided → delete all
cur.execute("DELETE FROM Devices")
conn.commit()