mirror of
https://github.com/Tautulli/Tautulli.git
synced 2025-08-14 02:26:58 -07:00
Merge pull request #157 from JonnyWong16/miscellaneous-fixes
Fix top platforms sort by duration
This commit is contained in:
commit
82025457ba
1 changed files with 1 additions and 1 deletions
|
@ -391,7 +391,7 @@ class DataFactory(object):
|
|||
'WHERE datetime(session_history.stopped, "unixepoch", "localtime") ' \
|
||||
'>= datetime("now", "-%s days", "localtime") ' \
|
||||
'GROUP BY session_history.platform ' \
|
||||
'ORDER BY total_plays DESC LIMIT %s' % (time_range, stat_count)
|
||||
'ORDER BY %s DESC LIMIT %s' % (time_range, sort_type, stat_count)
|
||||
result = monitor_db.select(query)
|
||||
except:
|
||||
logger.warn("Unable to execute database query.")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue