Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
edx-platform
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
OpenEdx
edx-platform
Commits
6260a686
Commit
6260a686
authored
Aug 14, 2017
by
Calen Pennington
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixup! Add a recurring nudge management command and templates
parent
f6d8b3f5
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 additions
and
2 deletions
+1
-2
openedx/core/djangoapps/schedules/management/commands/send_recurring_nudge.py
+1
-2
No files found.
openedx/core/djangoapps/schedules/management/commands/send_recurring_nudge.py
View file @
6260a686
...
@@ -90,7 +90,6 @@ class ScheduleStartResolver(RecipientResolver):
...
@@ -90,7 +90,6 @@ class ScheduleStartResolver(RecipientResolver):
yield
(
user
,
course
.
language
,
template_context
)
yield
(
user
,
course
.
language
,
template_context
)
class
Command
(
BaseCommand
):
class
Command
(
BaseCommand
):
def
add_arguments
(
self
,
parser
):
def
add_arguments
(
self
,
parser
):
...
@@ -101,5 +100,5 @@ class Command(BaseCommand):
...
@@ -101,5 +100,5 @@ class Command(BaseCommand):
for
week
in
(
1
,
2
,
3
,
4
):
for
week
in
(
1
,
2
,
3
,
4
):
msg_t
=
RecurringNudge
(
week
)
msg_t
=
RecurringNudge
(
week
)
target_date
=
current_date
+
datetime
.
timedelta
(
days
=
offset
)
target_date
=
current_date
+
datetime
.
timedelta
(
days
=
week
*
7
)
ScheduleStartResolver
(
target_date
)
.
send
(
msg_t
)
ScheduleStartResolver
(
target_date
)
.
send
(
msg_t
)
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment