mirror of
https://github.com/Tautulli/Tautulli.git
synced 2025-07-11 15:56:07 -07:00
Add time range to most concurrent stat
* Reorder cards
This commit is contained in:
parent
cb7ba7fdde
commit
53876e8f0d
2 changed files with 4 additions and 2 deletions
|
@ -592,7 +592,9 @@ class DataFactory(object):
|
|||
elif stat == 'most_concurrent':
|
||||
try:
|
||||
query = 'SELECT started, stopped ' \
|
||||
'FROM session_history '
|
||||
'FROM session_history ' \
|
||||
'WHERE datetime(stopped, "unixepoch", "localtime") ' \
|
||||
'>= datetime("now", "-%s days", "localtime") ' % time_range
|
||||
result = monitor_db.select(query)
|
||||
except:
|
||||
logger.warn("Unable to execute database query for get_home_stats: most_concurrent.")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue