Skip to content

armgit / wger

Public Imported from GitHub
0

Self hosted FLOSS fitness/workout, nutrition and weight tracker

Pass correct timedelta to workout email reminder template

Roland Geider31b71893da0e
diff --git a/wger/manager/management/commands/email-reminders.py b/wger/manager/management/commands/email-reminders.py
index 84e3c03ee..41638cdd5 100644
--- a/wger/manager/management/commands/email-reminders.py
+++ b/wger/manager/management/commands/email-reminders.py
@@ -74,7 +74,7 @@ class Command(BaseCommand):
self.send_email(profile.user,
current_workout,
- datetime.timedelta(days=profile.workout_reminder) - delta)
+ delta)
# non-loop schedule, take the step's duration
elif schedule and not schedule.is_loop: