summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLars Wirzenius <liw@liw.fi>2024-01-22 10:10:20 +0200
committerLars Wirzenius <liw@liw.fi>2024-01-22 10:10:20 +0200
commit17a021c16ca7f8e023f1dc1c254daebacabed03e (patch)
tree075f9cc50a6b54accd1269f53278ab6cc00ce41a
parent9108af615994f2fd84e395fcaea12998c3b70895 (diff)
downloadwumpus-hunter-17a021c16ca7f8e023f1dc1c254daebacabed03e.tar.gz
feat: move last-updated timestamp to the top of the pagemain
Signed-off-by: Lars Wirzenius <liw@liw.fi>
-rwxr-xr-xwumpus-hunter10
1 files changed, 5 insertions, 5 deletions
diff --git a/wumpus-hunter b/wumpus-hunter
index 06483c0..cbc9098 100755
--- a/wumpus-hunter
+++ b/wumpus-hunter
@@ -604,6 +604,11 @@ def count(run_log, src, counts, stats):
expl.child(EXPLANATION_HTML)
body.child(expl)
+ timestamp = time.strftime("%Y-%m-%d %H:%M:%S %z")
+ p = P()
+ p.child(f"Total of {total} test runs. Last updated {timestamp}")
+ body.child(p)
+
date = Th()
date.child("date")
@@ -658,11 +663,6 @@ def count(run_log, src, counts, stats):
body.child(table)
- timestamp = time.strftime("%Y-%m-%d %H:%M:%S %z")
- p = P()
- p.child(f"Total of {total} test runs. Last updated {timestamp}")
- body.child(p)
-
html = Html()
html.child(head)
html.child(body)