This commit is contained in:
Alexis Lahouze 2015-11-27 11:26:11 +01:00
parent 0ffc66aba0
commit 2afc7fae92
1 changed files with 2 additions and 1 deletions

View File

@ -81,7 +81,8 @@ class ScheduledOperation(db.Model):
).delete()
# 2) schedule remaining operations.
# Find the first date to have all dates in the range with the right day.
# Find the first date to have all dates in the range with the right
# day.
start_date = arrow.get(self.start_date)
day = min(self.day, monthrange(start_date.year, start_date.month)[1])