Fix debounce of api points to address Disk IO #914

This commit is contained in:
jokob-sk
2024-12-19 18:32:57 +11:00
parent 30d9d4b8fc
commit f4d215c843
6 changed files with 37 additions and 36 deletions

View File

@@ -514,10 +514,10 @@ def update_devices_names (db):
foundNsLookup = 0
foundNbtLookup = 0
# Gen unknown devices
sql.execute ("SELECT * FROM Devices WHERE devName IN ('(unknown)','', '(name not found)') AND devLastIP <> '-'")
unknownDevices = sql.fetchall()
db.commitDB()
# Gen unknown devices
device_handler = Device_obj(db)
# Retrieve devices
unknownDevices = device_handler.getUnknown()
# skip checks if no unknown devices
if len(unknownDevices) == 0: