diff --git a/server/app_state.py b/server/app_state.py index b85533d9..463c87b9 100755 --- a/server/app_state.py +++ b/server/app_state.py @@ -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 diff --git a/server/plugin.py b/server/plugin.py index 616e6727..6e89ed4e 100755 --- a/server/plugin.py +++ b/server/plugin.py @@ -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