From 70a2f874dd6cabe86ed82aba8394b0198c11c5fa Mon Sep 17 00:00:00 2001 From: Mrinal Purohit Date: Sat, 25 Jul 2015 17:19:20 +0530 Subject: [PATCH] Bug when most active user is "Local" When the most active user is a "Local" user i.e. user who hasn't signed in, then a['rows'][0]['user_id'] is set to None. This fixes it. --- data/interfaces/default/home_stats.html | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/data/interfaces/default/home_stats.html b/data/interfaces/default/home_stats.html index 75e45bfa..fe0a2a68 100644 --- a/data/interfaces/default/home_stats.html +++ b/data/interfaces/default/home_stats.html @@ -113,9 +113,14 @@ DOCUMENTATION :: END

Most Active User

+ % if a['rows'][0]['user_id']:
${a['rows'][0]['friendly_name']}
+ % else: + +
${a['rows'][0]['friendly_name']}
+ % endif

${a['rows'][0]['total_plays']}