Skip to content
This repository has been archived by the owner on Oct 28, 2020. It is now read-only.

Commit

Permalink
Merge pull request #1082 from akatsoulas/1183036-rotm-action-item
Browse files Browse the repository at this point in the history
[bug 1183036] Support waffle flags for ROTM action items.
  • Loading branch information
akatsoulas committed Aug 20, 2015
2 parents 72b5675 + 45ff63b commit 2c0f7eb
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions remo/profiles/tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,8 @@ def send_rotm_nomination_reminder():
"""

now_date = now().date()
if now_date.day == ROTM_REMINDER_DAY:
if (now_date.day == ROTM_REMINDER_DAY or
waffle.switch_is_active('enable_rotm_tasks')):
data = {'month': number2month(now_date.month)}
subject = 'Nominate Rep of the month'
template = 'emails/mentors_rotm_reminder.txt'
Expand Down Expand Up @@ -126,7 +127,8 @@ def resolve_nomination_action_items():
"""

today = now().date()
if today.day == NOMINATION_END_DAY:
if (today.day == NOMINATION_END_DAY or
waffle.switch_is_active('enable_rotm_tasks')):
mentors = UserProfile.objects.filter(user__groups__name='Mentor')
action_model = ContentType.objects.get_for_model(UserProfile)
# All the completed action items are always resolved
Expand Down

0 comments on commit 2c0f7eb

Please sign in to comment.