lms.djangoapps.course_goals.management.commands package#
Submodules#
lms.djangoapps.course_goals.management.commands.goal_reminder_email module#
Command to trigger sending reminder emails for learners to achieve their Course Goals
- class lms.djangoapps.course_goals.management.commands.goal_reminder_email.Command(stdout=None, stderr=None, no_color=False, force_color=False)#
Bases:
BaseCommand- Example usage:
$ ./manage.py lms goal_reminder_email
- handle(*args, **options)#
Handle goal emails across all courses.
This outer layer calls the inner and reports on any exception that occurred.
- static handle_goal(goal, today, sunday_date, monday_date, session_id)#
Sends an email reminder for a single CourseGoal, if it passes all our checks
- help = 'Send emails to users that are in danger of missing their course goals for the week'#
- lms.djangoapps.course_goals.management.commands.goal_reminder_email.send_ace_message(goal, session_id)#
Send an email reminding users to stay on track for their learning goal in this course
- Parameters:
goal (CourseGoal) – Goal object
Returns true if sent, false if it absorbed an exception and did not send
- lms.djangoapps.course_goals.management.commands.goal_reminder_email.send_email_using_ses(user, msg)#
Send email using AWS SES