This commit is contained in:
2026-04-23 08:22:57 +02:00
parent c7989ca915
commit c60951c582
+2 -2
View File
@@ -224,10 +224,10 @@ for pdf_path in BASE_DIR.glob("*.pdf"):
date_iso = convert_date_to_iso(date_tuple)
patient = verif.get("patient")
if patient:
name_part = f"{patient['prijmeni']}, {patient['jmeno']} "
name_part = f" {patient['prijmeni']}, {patient['jmeno']}"
else:
name_part = ""
new_name = f"{rc_final} {name_part}{date_iso} [EKG] [bez hodnocení].pdf"
new_name = f"{rc_final} {date_iso}{name_part} [EKG] [bez hodnocení].pdf"
new_path = pdf_path.with_name(new_name)
if not new_path.exists():