mirror of
https://github.com/Tautulli/Tautulli.git
synced 2025-07-07 13:41:15 -07:00
Merge pull request #982 from Pbaboe/StartDayofWeek
Start day of the week changeable
This commit is contained in:
commit
8b15c63b0d
4 changed files with 16 additions and 3 deletions
|
@ -169,7 +169,12 @@ class Graphs(object):
|
|||
logger.warn(u"PlexPy Graphs :: Unable to execute database query for get_total_plays_per_dayofweek: %s." % e)
|
||||
return None
|
||||
|
||||
days_list = ['Sunday', 'Monday', 'Tuesday', 'Wednesday',
|
||||
week_start = plexpy.CONFIG.WEEK_START
|
||||
if (week_start == 1):
|
||||
days_list = ['Monday', 'Tuesday', 'Wednesday',
|
||||
'Thursday', 'Friday', 'Saturday', 'Sunday']
|
||||
else:
|
||||
days_list = ['Sunday', 'Monday', 'Tuesday', 'Wednesday',
|
||||
'Thursday', 'Friday', 'Saturday']
|
||||
|
||||
categories = []
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue