From 435959db6da126b690699a792dbb454a9070892a Mon Sep 17 00:00:00 2001 From: Bee Webb Date: Tue, 5 Nov 2024 13:46:15 +0000 Subject: [PATCH] tmp fix DO NOT MERGE --- dashboard/templates/files.html | 2 +- dashboard/ui/views.py | 4 +--- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/dashboard/templates/files.html b/dashboard/templates/files.html index a47063f6a..ea2b3dd28 100644 --- a/dashboard/templates/files.html +++ b/dashboard/templates/files.html @@ -49,7 +49,7 @@

File Sizes

{% for package, activities in current_stats.inverted_file.activities.items() %} - {{ publisher_name[func.dataset_to_publisher(package[:-4])] }} + {{ publisher_name[func.dataset_to_publisher(package[:-4])] }} {{ package[:-4] }} {{ activities }} {{ current_stats.inverted_file.organisations.get(package) }} diff --git a/dashboard/ui/views.py b/dashboard/ui/views.py index 7cc3dd7ee..184b3a980 100644 --- a/dashboard/ui/views.py +++ b/dashboard/ui/views.py @@ -30,7 +30,6 @@ github_issues, get_publisher_stats, MAJOR_VERSIONS, - metadata, publisher_name, publishers_ordered_by_title, is_valid_element_or_attribute, @@ -162,9 +161,8 @@ def _make_context(page_name: str): github_issues=github_issues, MAJOR_VERSIONS=MAJOR_VERSIONS, expected_versions=vars.expected_versions, - metadata=metadata, slugs=slugs, - datetime_data=dateutil.parser.parse(metadata['created_at']).strftime('%-d %B %Y (at %H:%M %Z)'), + datetime_data="FIXME", current_year=datetime.datetime.now(datetime.UTC).year, stats_url='https://stats.codeforiati.org', stats_gh_url=STATS_GH_URL,