mirror of
https://github.com/Tautulli/Tautulli.git
synced 2025-08-14 02:26:58 -07:00
Fix bug on stats type where it would always show home stats by duration.
This commit is contained in:
parent
7c6619ebc5
commit
0c6ccc5d52
1 changed files with 2 additions and 2 deletions
|
@ -131,10 +131,10 @@ class DataFactory(object):
|
|||
|
||||
return dict
|
||||
|
||||
def get_home_stats(self, time_range='30', stats_type='0', stats_count='5', stats_cards='', notify_watched_percent='85'):
|
||||
def get_home_stats(self, time_range='30', stats_type=0, stats_count='5', stats_cards='', notify_watched_percent='85'):
|
||||
monitor_db = database.MonitorDatabase()
|
||||
|
||||
sort_type = 'total_plays' if stats_type == '0' else 'total_duration'
|
||||
sort_type = 'total_plays' if stats_type == 0 else 'total_duration'
|
||||
|
||||
home_stats = []
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue