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.
This commit is contained in:
Mrinal Purohit 2015-07-25 17:19:20 +05:30
commit 70a2f874dd

View file

@ -113,9 +113,14 @@ DOCUMENTATION :: END
<div class="home-platforms-instance-name">
<h4>Most Active User</h4>
% if a['rows'][0]['user_id']:
<a href="user?user_id=${a['rows'][0]['user_id']}">
<h5>${a['rows'][0]['friendly_name']}</h5>
</a>
% else:
<a href="user?user=${a['rows'][0]['friendly_name']}">
<h5>${a['rows'][0]['friendly_name']}</h5>
% endif
</div>
<div class="user-platforms-instance-playcount">
<h3>${a['rows'][0]['total_plays']}</h3>