fix CKalender event parsing

This commit is contained in:
2026-08-26 16:54:30 +02:00
parent dd5b1bb540
commit 254be41215
+4 -1
View File
@@ -160,7 +160,10 @@ for i in range(len(tablerows)):
pdf.cell(20, 4, pdf_safe(date_for_table[2] + "." + date_for_table[1] + "." + date_for_table[0]), 0, 0, "C", fill=True) pdf.cell(20, 4, pdf_safe(date_for_table[2] + "." + date_for_table[1] + "." + date_for_table[0]), 0, 0, "C", fill=True)
event_full_block = table_cells[j].find_all("div", class_="calEventBox") event_full_block = table_cells[j].find_all("div", class_="calEventBox")
events = table_cells[j].find_all(style="margin-right:.2em") events = table_cells[j].find_all(
style=lambda style: style
and "margin-right:.2em" in style.replace(" ", "")
)
pdf.cell(15, 4, pdf_safe(weekdays_list[weekday]), 0, 0, "C", fill=True) pdf.cell(15, 4, pdf_safe(weekdays_list[weekday]), 0, 0, "C", fill=True)