forked from rDrama/rDrama
fds
parent
1bdfb1afdf
commit
1b849c57c1
|
@ -205,10 +205,10 @@ def cached_chart(kind):
|
||||||
today_cutoff = calendar.timegm(midnight_this_morning)
|
today_cutoff = calendar.timegm(midnight_this_morning)
|
||||||
|
|
||||||
if kind == "daily":
|
if kind == "daily":
|
||||||
file = f"{SITE}_daily.png"
|
file = f"../{SITE}_daily.png"
|
||||||
day_cutoffs = [today_cutoff - 86400 * i for i in range(47)][1:]
|
day_cutoffs = [today_cutoff - 86400 * i for i in range(47)][1:]
|
||||||
else:
|
else:
|
||||||
file = f"{SITE}_weekly.png"
|
file = f"../{SITE}_weekly.png"
|
||||||
day_cutoffs = [today_cutoff - 86400 * 7 * i for i in range(47)][1:]
|
day_cutoffs = [today_cutoff - 86400 * 7 * i for i in range(47)][1:]
|
||||||
|
|
||||||
day_cutoffs.insert(0, calendar.timegm(now))
|
day_cutoffs.insert(0, calendar.timegm(now))
|
||||||
|
|
Loading…
Reference in New Issue