Improved code
This commit is contained in:
parent
5dcae2d435
commit
07c2484849
1 changed files with 0 additions and 4 deletions
|
@ -113,12 +113,8 @@ class DayViewPanel (PanelDesign):
|
|||
allday_ev.append(event)
|
||||
elif event.multiday:
|
||||
if self.__is_today__(event.begin_datetime):
|
||||
today = date.today()
|
||||
tzinfo = event.end_datetime.tzinfo
|
||||
timed_ev.append(event)
|
||||
elif self.__is_today__(event.end_datetime):
|
||||
today = date.today()
|
||||
tzinfo = event.begin_datetime.tzinfo
|
||||
timed_ev.append(event)
|
||||
else:
|
||||
allday_ev.append(event)
|
||||
|
|
Loading…
Reference in a new issue