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}