lots of changes leave me alone its better now

This commit is contained in:
2026-02-14 04:35:40 -06:00
parent 97a166f5aa
commit 4d3a9fbd54
13 changed files with 438 additions and 57 deletions

View File

@@ -71,7 +71,7 @@ def check_medication_reminders():
user_settings = notifications.getNotificationSettings(med["user_uuid"])
if user_settings:
msg = f"Time to take {med['name']} ({med['dosage']} {med['unit']})"
notifications._sendToEnabledChannels(user_settings, msg)
notifications._sendToEnabledChannels(user_settings, msg, user_uuid=med["user_uuid"])
except Exception as e:
logger.error(f"Error checking medication reminders: {e}")
@@ -98,7 +98,7 @@ def check_routine_reminders():
user_settings = notifications.getNotificationSettings(routine["user_uuid"])
if user_settings:
msg = f"Time to start your routine: {routine['name']}"
notifications._sendToEnabledChannels(user_settings, msg)
notifications._sendToEnabledChannels(user_settings, msg, user_uuid=routine["user_uuid"])
except Exception as e:
logger.error(f"Error checking routine reminders: {e}")
@@ -113,7 +113,7 @@ def check_refills():
user_settings = notifications.getNotificationSettings(med["user_uuid"])
if user_settings:
msg = f"Low on {med['name']}: only {qty} doses remaining. Time to refill!"
notifications._sendToEnabledChannels(user_settings, msg)
notifications._sendToEnabledChannels(user_settings, msg, user_uuid=med["user_uuid"])
except Exception as e:
logger.error(f"Error checking refills: {e}")