From e665b09909b9989ada57ce651c27e44963a08d92 Mon Sep 17 00:00:00 2001
From: crflynn
Date: Sat, 28 Apr 2018 01:35:06 -0400
Subject: [PATCH] still show agg downloads if metadata not found
---
pypistats/templates/package.html | 26 +++++++++++++-------------
1 file changed, 13 insertions(+), 13 deletions(-)
diff --git a/pypistats/templates/package.html b/pypistats/templates/package.html
index e0cfa48..f79b8ba 100644
--- a/pypistats/templates/package.html
+++ b/pypistats/templates/package.html
@@ -52,20 +52,20 @@
{% if not loop.last %}|{% endif %}
{% endfor %}
{% endif %}
-
- Downloads last day:
- {{"{:,.0f}".format(recent['day'])}}
-
- Downloads last week:
- {{"{:,.0f}".format(recent['week'])}}
-
- Downloads last month:
- {{"{:,.0f}".format(recent['month'])}}
{% else %}
No metadata found.
- {%endif%}
-
- {% endif %}
+ {%endif%}
+
+ Downloads last day:
+ {{"{:,.0f}".format(recent['day'])}}
+
+ Downloads last week:
+ {{"{:,.0f}".format(recent['week'])}}
+
+ Downloads last month:
+ {{"{:,.0f}".format(recent['month'])}}
+
+ {% endif %}
- {% endblock %}
\ No newline at end of file
+ {% endblock %}