mirror of
https://github.com/jokob-sk/NetAlertX.git
synced 2025-12-06 17:15:38 -08:00
Signed-off-by: jokob-sk <jokob.sk@gmail.com>
This commit is contained in:
@@ -141,7 +141,7 @@ class app_state_class:
|
||||
except (TypeError, ValueError) as e:
|
||||
mylog('none', [f'[app_state_class] Failed to serialize object to JSON: {e}'])
|
||||
|
||||
return # Allows chaining by returning self
|
||||
return self # Allows chaining by returning self
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -229,7 +229,7 @@ class plugin_manager:
|
||||
WHERE Plugin = ?
|
||||
""", (plugin_name,))
|
||||
row = sql.fetchone()
|
||||
last_changed, total_objects, new_objects, state_updated = row if row else ("", 0, 0)
|
||||
last_changed, total_objects, new_objects, state_updated = row if row else ("", 0, 0, "")
|
||||
new_objects = new_objects or 0 # ensure it's int
|
||||
changed_objects = total_objects - new_objects
|
||||
|
||||
|
||||
Reference in New Issue
Block a user