Remove intermediate datetime.datetime().date() usage
Instead of doing datetime.datetime().date(). Just call datetime.date() Change-Id: I7f7b8a1e0a8a42d14e4431b5212901c4f57f1cf3
This commit is contained in:
parent
b14b2fb3cf
commit
04317afb50
@ -21,13 +21,13 @@ import yaml
|
|||||||
from yaml2ical.recurrence import supported_recurrences
|
from yaml2ical.recurrence import supported_recurrences
|
||||||
|
|
||||||
DATES = {
|
DATES = {
|
||||||
'Monday': datetime.datetime(1900, 1, 1).date(),
|
'Monday': datetime.date(1900, 1, 1),
|
||||||
'Tuesday': datetime.datetime(1900, 1, 2).date(),
|
'Tuesday': datetime.date(1900, 1, 2),
|
||||||
'Wednesday': datetime.datetime(1900, 1, 3).date(),
|
'Wednesday': datetime.date(1900, 1, 3),
|
||||||
'Thursday': datetime.datetime(1900, 1, 4).date(),
|
'Thursday': datetime.date(1900, 1, 4),
|
||||||
'Friday': datetime.datetime(1900, 1, 5).date(),
|
'Friday': datetime.date(1900, 1, 5),
|
||||||
'Saturday': datetime.datetime(1900, 1, 6).date(),
|
'Saturday': datetime.date(1900, 1, 6),
|
||||||
'Sunday': datetime.datetime(1900, 1, 7).date(),
|
'Sunday': datetime.date(1900, 1, 7),
|
||||||
}
|
}
|
||||||
ONE_WEEK = datetime.timedelta(weeks=1)
|
ONE_WEEK = datetime.timedelta(weeks=1)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user