Patch apscheduler weekday (Sunday=0)

This commit is contained in:
JonnyWong16 2018-01-14 10:46:25 -08:00
parent 0057481efb
commit 28efaf73c7

View file

@ -104,7 +104,7 @@ class DayOfWeekField(BaseField):
COMPILERS = BaseField.COMPILERS + [WeekdayRangeExpression]
def get_value(self, dateval):
return dateval.isoweekday()
return dateval.isoweekday() % 7
class MonthField(BaseField):