Update SQL statement to correct one

This commit is contained in:
Joshua
2022-07-17 19:16:33 +10:00
committed by GitHub
parent 43c4d153f4
commit 51027f6b30

View File

@@ -711,7 +711,7 @@ def print_scan_stats ():
sql.execute("SELECT * FROM Devices")
History_All = sql.fetchall()
History_All_Devices = len(History_All)
sql.execute("SELECT * FROM Devices WHERE dev_PresentLastScan is True")
sql.execute("""SELECT * FROM CurrentScan WHERE cur_ScanCycle = ? """, (cycle,))
History_Online = sql.fetchall()
History_Online_Devices = len(History_Online)
History_Offline_Devices = History_All_Devices - History_Online_Devices