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
edx
edx-platform
Commits
8afe1ffe
Commit
8afe1ffe
authored
Oct 25, 2017
by
Calen Pennington
Committed by
Nimisha Asthagiri
Oct 26, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Move schedule management command log_prefix to a class attribute
parent
c68883f0
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
12 deletions
+3
-12
openedx/core/djangoapps/schedules/management/commands/send_course_update.py
+1
-4
openedx/core/djangoapps/schedules/management/commands/send_recurring_nudge.py
+1
-4
openedx/core/djangoapps/schedules/management/commands/send_upgrade_reminder.py
+1
-4
No files found.
openedx/core/djangoapps/schedules/management/commands/send_course_update.py
View file @
8afe1ffe
...
...
@@ -4,10 +4,7 @@ from openedx.core.djangoapps.schedules.tasks import ScheduleCourseUpdate
class
Command
(
SendEmailBaseCommand
):
async_send_task
=
ScheduleCourseUpdate
def
__init__
(
self
,
*
args
,
**
kwargs
):
super
(
Command
,
self
)
.
__init__
(
*
args
,
**
kwargs
)
self
.
log_prefix
=
'Upgrade Reminder'
log_prefix
=
'Course Update'
def
send_emails
(
self
,
*
args
,
**
kwargs
):
for
day_offset
in
xrange
(
-
7
,
-
77
,
-
7
):
...
...
openedx/core/djangoapps/schedules/management/commands/send_recurring_nudge.py
View file @
8afe1ffe
...
...
@@ -4,10 +4,7 @@ from openedx.core.djangoapps.schedules.tasks import ScheduleRecurringNudge
class
Command
(
SendEmailBaseCommand
):
async_send_task
=
ScheduleRecurringNudge
def
__init__
(
self
,
*
args
,
**
kwargs
):
super
(
Command
,
self
)
.
__init__
(
*
args
,
**
kwargs
)
self
.
log_prefix
=
'Scheduled Nudge'
log_prefix
=
'Scheduled Nudge'
def
send_emails
(
self
,
*
args
,
**
kwargs
):
for
day_offset
in
(
-
3
,
-
10
):
...
...
openedx/core/djangoapps/schedules/management/commands/send_upgrade_reminder.py
View file @
8afe1ffe
...
...
@@ -4,10 +4,7 @@ from openedx.core.djangoapps.schedules.tasks import ScheduleUpgradeReminder
class
Command
(
SendEmailBaseCommand
):
async_send_task
=
ScheduleUpgradeReminder
def
__init__
(
self
,
*
args
,
**
kwargs
):
super
(
Command
,
self
)
.
__init__
(
*
args
,
**
kwargs
)
self
.
log_prefix
=
'Upgrade Reminder'
log_prefix
=
'Upgrade Reminder'
def
send_emails
(
self
,
*
args
,
**
kwargs
):
self
.
enqueue
(
2
,
*
args
,
**
kwargs
)
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