From 60aade907443bc67f4ff33f4fe1cf5360ed0d2e0 Mon Sep 17 00:00:00 2001 From: samuelbiasgit Date: Thu, 27 Aug 2026 09:55:29 +0200 Subject: [PATCH] fix second calendar month and PDF link --- web/intranet_repo/projects/intranet/index.php | 2 +- worker/pdf_python/create_pdf.py | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/web/intranet_repo/projects/intranet/index.php b/web/intranet_repo/projects/intranet/index.php index a099b46..8fc6530 100644 --- a/web/intranet_repo/projects/intranet/index.php +++ b/web/intranet_repo/projects/intranet/index.php @@ -90,7 +90,7 @@ - diff --git a/worker/pdf_python/create_pdf.py b/worker/pdf_python/create_pdf.py index fcb85db..feac006 100644 --- a/worker/pdf_python/create_pdf.py +++ b/worker/pdf_python/create_pdf.py @@ -282,7 +282,10 @@ if jStart + 1 < 12: 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") - 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)