9363: Creation of the "graphic calendar report" failed

This commit is contained in:
SNoiraud 2016-04-08 17:25:10 +02:00
parent f9f98c79a7
commit 93cb85be3d

View File

@ -270,7 +270,7 @@ class Calendar(Report):
day_col * cell_width + cell_width/2, day_col * cell_width + cell_width/2,
header + week_row * cell_height) header + week_row * cell_height)
list_ = self.calendar.get(month, {}).get(thisday.day, []) list_ = self.calendar.get(month, {}).get(thisday.day, [])
list_.sort() # to get CAL-Holiday on bottom list_.sort(key= lambda a: a[0], reverse=True) # to get CAL-Holiday on bottom
position = spacing position = spacing
for (format, p, m_list) in list_: for (format, p, m_list) in list_:
for line in reversed(p.split("\n")): for line in reversed(p.split("\n")):