mirror of
https://github.com/Tautulli/Tautulli.git
synced 2025-08-24 06:55:26 -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">
|
<div class="home-platforms-instance-name">
|
||||||
<h4>Most Active User</h4>
|
<h4>Most Active User</h4>
|
||||||
|
% if a['rows'][0]['user_id']:
|
||||||
<a href="user?user_id=${a['rows'][0]['user_id']}">
|
<a href="user?user_id=${a['rows'][0]['user_id']}">
|
||||||
<h5>${a['rows'][0]['friendly_name']}</h5>
|
<h5>${a['rows'][0]['friendly_name']}</h5>
|
||||||
</a>
|
</a>
|
||||||
|
% else:
|
||||||
|
<a href="user?user=${a['rows'][0]['friendly_name']}">
|
||||||
|
<h5>${a['rows'][0]['friendly_name']}</h5>
|
||||||
|
% endif
|
||||||
</div>
|
</div>
|
||||||
<div class="user-platforms-instance-playcount">
|
<div class="user-platforms-instance-playcount">
|
||||||
<h3>${a['rows'][0]['total_plays']}</h3>
|
<h3>${a['rows'][0]['total_plays']}</h3>
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue