mirror of
https://github.com/Tautulli/Tautulli.git
synced 2025-07-14 01:02:59 -07:00
Move refresh interval setting back to the settings page
This commit is contained in:
parent
818e7723ff
commit
1032fdfe7a
4 changed files with 24 additions and 47 deletions
|
@ -286,11 +286,7 @@ class WebInterface(object):
|
|||
|
||||
@cherrypy.expose
|
||||
@requireAuth(member_of("admin"))
|
||||
def set_home_stats_config(self, refresh_interval=None, time_range=None, stats_type=None, stats_count=None,
|
||||
recently_added_count=None, **kwargs):
|
||||
if refresh_interval:
|
||||
plexpy.CONFIG.__setattr__('HOME_REFRESH_INTERVAL', refresh_interval)
|
||||
plexpy.CONFIG.write()
|
||||
def set_home_stats_config(self, time_range=None, stats_type=None, stats_count=None, recently_added_count=None, **kwargs):
|
||||
if time_range:
|
||||
plexpy.CONFIG.__setattr__('HOME_STATS_LENGTH', time_range)
|
||||
plexpy.CONFIG.write()
|
||||
|
@ -2647,6 +2643,7 @@ class WebInterface(object):
|
|||
"home_sections": json.dumps(plexpy.CONFIG.HOME_SECTIONS),
|
||||
"home_stats_cards": json.dumps(plexpy.CONFIG.HOME_STATS_CARDS),
|
||||
"home_library_cards": json.dumps(plexpy.CONFIG.HOME_LIBRARY_CARDS),
|
||||
"home_refresh_interval": plexpy.CONFIG.HOME_REFRESH_INTERVAL,
|
||||
"buffer_threshold": plexpy.CONFIG.BUFFER_THRESHOLD,
|
||||
"buffer_wait": plexpy.CONFIG.BUFFER_WAIT,
|
||||
"group_history_tables": checked(plexpy.CONFIG.GROUP_HISTORY_TABLES),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue