Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Video AG Infrastruktur
website
Commits
71e0a501
Commit
71e0a501
authored
Aug 21, 2017
by
Andreas Valder
Browse files
fixed stats i broke
parent
1a9cf270
Changes
1
Hide whitespace changes
Inline
Side-by-side
stats.py
View file @
71e0a501
...
...
@@ -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
:
for
i
in
range
(
lastx
,
int
(
val
)
-
1
)
:
res
[
'x'
].
append
(
i
)
res
[
'
y
'
].
append
(
0
)
if
key
==
'x'
:
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
)
lastx
=
int
(
val
)
if
key
not
in
res
:
res
[
key
]
=
[]
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment