geminispace.info

gemini search engine
git clone https://git.clttr.info/geminispace.info.git
Log (Feed) | Files | Refs (Tags) | README | LICENSE

commit b833d19086bda01fa669e8a771c3d5ebc35daefe
parent 8e51836116d0ec77e5935a35297893ae0c883f2f
Author: Natalie Pendragon <natpen@natpen.net>
Date:   Wed, 10 Jun 2020 08:09:33 -0400

[serve] Use preformatted blocks on the statistics page

Diffstat:
Mgus/serve.py | 10++++++++--
1 file changed, 8 insertions(+), 2 deletions(-)

diff --git a/gus/serve.py b/gus/serve.py @@ -74,25 +74,31 @@ def _render_index_statistics(): "", "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"]), + "```", + "Page Count : {:>5}".format(last_statistics["page_count"]), + "Domain Count : {:>5}".format(last_statistics["domain_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 {:%Y-%m-%d}.".format(last_statistics["index_modification_time"]), "", + "```", ] for pair in last_statistics["content_type_frequencies"]: d.append("{:>5} - {}".format(pair[1], pair[0])) d.extend([ + "```", "", "## By Charset", "", "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["charset_frequencies"]: d.append("{:>5} - {}".format(pair[1], pair[0])) + d.append("```") return d