lots of changes leave me alone its better now
This commit is contained in:
@@ -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}")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user