Update scheduler module

This commit is contained in:
Ruud
2013-11-22 15:38:33 +01:00
parent bb6e1e2909
commit b8f78e311d
12 changed files with 215 additions and 53 deletions
+2 -1
View File
@@ -85,7 +85,8 @@ class WeekField(BaseField):
class DayOfMonthField(BaseField):
COMPILERS = BaseField.COMPILERS + [WeekdayPositionExpression]
COMPILERS = BaseField.COMPILERS + [WeekdayPositionExpression,
LastDayOfMonthExpression]
def get_max(self, dateval):
return monthrange(dateval.year, dateval.month)[1]