Skip to content

Commit

Permalink
extend the hard coded due date by 1 week.
Browse files Browse the repository at this point in the history
  • Loading branch information
jtf621 committed Jan 8, 2018
1 parent 4207be4 commit e56737b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion schools/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -299,7 +299,7 @@ def due_date(self):
tz = self.created_at.tzinfo
if (self.created_at < timezone.datetime(2018, 1, 7, tzinfo=tz) and
self.created_at > timezone.datetime(2017, 12, 30, tzinfo=tz)):
hard_coded_due_date = timezone.datetime(2018, 1, 9, tzinfo=tz)
hard_coded_due_date = timezone.datetime(2018, 1, 15, tzinfo=tz)
return hard_coded_due_date.date()
return (self.created_at + datetime.timedelta(30)).date()

Expand Down

0 comments on commit e56737b

Please sign in to comment.