This commit is contained in:
jokob-sk committed 2024-12-23 13:10:27 +11:00
1 parent a4c34140bf
commit 8f8264c6fa
9 files changed
+698 -4

No files matched your search

+17
View File
@@ -40,6 +40,23 @@ class Device_obj:
return result[column_name] if result else None
# Get all down
def getDown(self):
self.db.sql.execute("""
SELECT * FROM Devices WHERE devAlertDown = 1 and devPresentLastScan = 0
""")
return self.db.sql.fetchall()
# Get all down
def getOffline(self):
self.db.sql.execute("""
SELECT * FROM Devices WHERE devPresentLastScan = 0
""")
return self.db.sql.fetchall()
#-------------------------------------------------------------------------------
# Removing devices from the CurrentScan DB table which the user chose to ignore by MAC or IP