commit 7d609838ded87a4819ee08a2b45b0be8b2099dcd
parent d07bb33e677afbe7aedff1774f32354b64de7edb
Author: Natalie Pendragon <natpen@natpen.net>
Date: Thu, 21 May 2020 09:18:25 -0400
[serve] Update formatting of statistics page
Diffstat:
1 file changed, 2 insertions(+), 3 deletions(-)
diff --git a/gus/serve.py b/gus/serve.py
@@ -71,15 +71,14 @@ def _render_index_statistics():
"",
"## Overall",
"",
- "These figures are representative of the aggregate size of Geminispace at the time the current index was last updated on {}.".format(last_statistics["index_modification_time"]),
+ "These figures are representative of the aggregate size of Geminispace at the time the current index was last updated on {:%Y-%m-%d}.".format(last_statistics["index_modification_time"]),
"",
"Page Count : {:>5}".format(last_statistics["page_count"]),
"Domain Count : {:>5}".format(last_statistics["domain_count"]),
- "Redirect Count : {:>5}".format(last_statistics["redirect_count"]),
"",
"## By Content Type",
"",
- "These figures are representative of the number of pages seen per content type at the time the current index was last updated on {}.".format(last_statistics["index_modification_time"]),
+ "These figures are representative of the number of pages seen per content type at the time the current index was last updated on {:%Y-%m-%d}.".format(last_statistics["index_modification_time"]),
"",
]
for pair in last_statistics["content_type_frequencies"]: