Update state_manager.py

This commit is contained in:
DJObleezy 2025-03-26 08:02:03 -07:00 committed by GitHub
parent c92c22cf04
commit 65ebf2032e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -409,7 +409,7 @@ class StateManager:
if len(metrics_log) > MAX_HISTORY_ENTRIES:
metrics_log = metrics_log[-MAX_HISTORY_ENTRIES:]
def save_notifications(self, notifications):
def save_notifications(self, notifications):
"""Save notifications to persistent storage."""
try:
# If we have Redis, use it
@ -424,7 +424,7 @@ def save_notifications(self, notifications):
logging.error(f"Error saving notifications: {e}")
return False
def get_notifications(self):
def get_notifications(self):
"""Retrieve notifications from persistent storage."""
try:
# If we have Redis, use it