Replace max time parameter by current time
This commit is contained in:
parent
5aa667a86f
commit
ca56b250f7
1 changed files with 1 additions and 1 deletions
|
@ -48,7 +48,7 @@ def moodstats(user):
|
||||||
maxval = Mood.objects.filter(user=user).latest("value").value
|
maxval = Mood.objects.filter(user=user).latest("value").value
|
||||||
maxy = maxval + max(maxval * 0.1, 1)
|
maxy = maxval + max(maxval * 0.1, 1)
|
||||||
|
|
||||||
maxx = maxdate.timestamp() * 1000
|
maxx = timezone.now().timestamp() * 1000
|
||||||
minx = maxx - (60*60*24*7) * 1000
|
minx = maxx - (60*60*24*7) * 1000
|
||||||
|
|
||||||
output = points * line * timeseries.rolling(line, rolling_window=7)
|
output = points * line * timeseries.rolling(line, rolling_window=7)
|
||||||
|
|
Loading…
Reference in a new issue