From 2ae6135180b22b8187781170ae7f58e10f5daad4 Mon Sep 17 00:00:00 2001 From: fordprefect Date: Fri, 25 Feb 2022 12:05:22 +0100 Subject: [PATCH] fix anchors, introduce top anchor and link to it --- speiseplan.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/speiseplan.py b/speiseplan.py index 5c80430..cd6f68e 100755 --- a/speiseplan.py +++ b/speiseplan.py @@ -76,7 +76,7 @@ with open("index.html", "w") as f: f.write(""" - + """) f.write(f"zuletzt aktualisiert: {datetime.datetime.now().strftime('%d.%m.%Y %H:%M')}
") @@ -87,13 +87,14 @@ with open("index.html", "w") as f: f.write("\n

\n") for b in bistros: - f.write(f"

{b}

\n") + f.write(f"

{b}

\n") try: f.write(bistros[b]['f']()) f.write("\n") except Exception as e: print(f"Speiseplan: Aktualisierung von {b} fehlgeschlagen mit {e}") f.write("fehlgeschlagen
\n") + f.write("

zurück nach oben

\n") f.write("

\n")