mirror of
https://github.com/Tautulli/Tautulli.git
synced 2025-08-21 22:03:18 -07:00
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:
parent
69403dbf07
commit
70a2f874dd
1 changed files with 5 additions and 0 deletions
|
@ -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>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue