Skip to content
Snippets Groups Projects
Commit 71e0a501 authored by Andreas Valder's avatar Andreas Valder
Browse files

fixed stats i broke

parent 1a9cf270
Branches
No related tags found
No related merge requests found
......@@ -48,11 +48,11 @@ def stats_generic(req, param=None):
lastx = 0
for row in rows:
for key, val in row.items():
if req == 'live_views' and key == 'x' and lastx != int(val)-1:
if req == 'live_views' and key == 'x':
if lastx != int(val)-1:
for i in range(lastx, int(val)-1):
res['x'].append(i)
res['y'].append(0)
if key == 'x':
lastx = int(val)
if key not in res:
res[key] = []
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment