From 092a68ac020d6e2e0d6c0fc67b40b1e3e4a74112 Mon Sep 17 00:00:00 2001 From: Dotty Dotter Date: Wed, 6 May 2026 16:21:17 +0200 Subject: [PATCH] fix(#177): f-string ohne Backslash (Py3.9-Kompat fuer Local-Tests) --- app/main.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/app/main.py b/app/main.py index 321c1fd..8a9be64 100644 --- a/app/main.py +++ b/app/main.py @@ -2276,6 +2276,9 @@ async def api_draft_pdf(draft_id: int): news_titel = d.get("news_titel") or "" news_url = d.get("news_url") or "" created_at = (d.get("created_at") or "")[:16] + quelle_html = ( + f' · Quelle' if news_url else "" + ) full_html = f""" @@ -2310,7 +2313,7 @@ async def api_draft_pdf(draft_id: int):
Drucksache: {drucksache} ({bundesland})
- Anlass: {news_titel}{f' · Quelle' if news_url else ''}
+ Anlass: {news_titel}{quelle_html}
Erzeugt: {created_at}
{body_html}