From b17fd3b7a9b4cfd81efeeec9aefd3f80a7a39617 Mon Sep 17 00:00:00 2001 From: Joshua <63589370+Final-Hawk@users.noreply.github.com> Date: Sun, 17 Jul 2022 15:41:59 +1000 Subject: [PATCH] Update pialert.py --- back/pialert.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/back/pialert.py b/back/pialert.py index 98459dad..72d20ba8 100644 --- a/back/pialert.py +++ b/back/pialert.py @@ -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 CurrentScan") + sql.execute("SELECT * FROM Devices WHERE dev_PresentLastScan is True") History_Online = sql.fetchall() History_Online_Devices = len(History_Online) History_Offline_Devices = History_All_Devices - History_Online_Devices