online history - fix negative

This commit is contained in:
Jokob-sk
2023-01-01 13:17:50 +11:00
parent f487dc83c4
commit 9cc4513ba1
2 changed files with 6 additions and 1 deletions

View File

@@ -1125,6 +1125,10 @@ def scan_network ():
# Sessions snapshot
file_print(' Creating sessions snapshot')
create_sessions_snapshot ()
# Sessions snapshot
file_print(' Inserting scan results into Online_History')
insertOnlineHistory()
# Skip repeated notifications
file_print(' Skipping repeated notifications')
@@ -1391,6 +1395,8 @@ def print_scan_stats ():
(cycle,))
file_print(' IP Changes.........: ' + str ( sql.fetchone()[0]) )
#-------------------------------------------------------------------------------
def insertOnlineHistory():
# Add to History
sql.execute("SELECT * FROM Devices")
History_All = sql.fetchall()