forked from MarseyWorld/MarseyWorld
fsd
parent
e547ad90cc
commit
62bfc5e629
|
@ -10,4 +10,6 @@ venv/
|
|||
.sass-cache/
|
||||
flask_session/
|
||||
.DS_Store
|
||||
site_settings
|
||||
site_settings
|
||||
daily_chart.png
|
||||
weekly_chart.png
|
|
@ -149,10 +149,10 @@ def cached_chart(days):
|
|||
today_cutoff = calendar.timegm(midnight_this_morning)
|
||||
|
||||
if days:
|
||||
file = "/daily_chart.png"
|
||||
file = "daily_chart.png"
|
||||
day_cutoffs = [today_cutoff - 86400 * i for i in range(47)][1:]
|
||||
else:
|
||||
file = "/weekly_chart.png"
|
||||
file = "weekly_chart.png"
|
||||
day_cutoffs = [today_cutoff - 86400 * 7 * i for i in range(47)][1:]
|
||||
|
||||
day_cutoffs.insert(0, calendar.timegm(now))
|
||||
|
|
Loading…
Reference in New Issue