Replace max time parameter by current time

This commit is contained in:
Kumi 2021-02-28 19:58:38 +01:00
parent 67cf834fa9
commit e93798c266

View file

@ -48,7 +48,7 @@ def moodstats(user):
maxval = Mood.objects.filter(user=user).latest("value").value
maxy = maxval + max(maxval * 0.1, 1)
maxx = maxdate.timestamp() * 1000
maxx = timezone.now().timestamp() * 1000
minx = maxx - (60*60*24*7) * 1000
output = points * line * timeseries.rolling(line, rolling_window=7)