From e80d88c9ff95c64a3ddfb08549841cb777472828 Mon Sep 17 00:00:00 2001 From: JonnyWong16 Date: Sun, 5 Nov 2017 07:35:08 -0800 Subject: [PATCH] Make sure there are stats before creating the watched statistic cards --- data/interfaces/default/home_stats.html | 27 +++++++++++++------------ 1 file changed, 14 insertions(+), 13 deletions(-) diff --git a/data/interfaces/default/home_stats.html b/data/interfaces/default/home_stats.html index bd85a9eb..6a512b16 100644 --- a/data/interfaces/default/home_stats.html +++ b/data/interfaces/default/home_stats.html @@ -64,6 +64,7 @@ DOCUMENTATION :: END % if data and any(top_stat['rows'] for top_stat in data): % for top_stat in data: +% if top_stat['rows']: <% stat_id = top_stat['stat_id'] %>
@@ -74,25 +75,25 @@ DOCUMENTATION :: END
% endif % if stat_id in ('top_movies', 'popular_movies', 'top_tv', 'popular_tv', 'top_music', 'popular_music', 'last_watched'): - % elif stat_id == 'top_users': - % elif stat_id == 'top_platforms': -
+
% elif stat_id == 'most_concurrent': -
+
% endif
@@ -157,6 +158,7 @@ DOCUMENTATION :: END
+% endif % endfor