Commit 6260a686 by Calen Pennington

fixup! Add a recurring nudge management command and templates

parent f6d8b3f5
......@@ -90,7 +90,6 @@ class ScheduleStartResolver(RecipientResolver):
yield (user, course.language, template_context)
class Command(BaseCommand):
def add_arguments(self, parser):
......@@ -101,5 +100,5 @@ class Command(BaseCommand):
for week in (1, 2, 3, 4):
msg_t = RecurringNudge(week)
target_date = current_date + datetime.timedelta(days=offset)
ScheduleStartResolver(target_date).send(msg_t)
\ No newline at end of file
target_date = current_date + datetime.timedelta(days=week * 7)
ScheduleStartResolver(target_date).send(msg_t)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment