Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
piks3l
Respect My Net
Commits
586ef58a
Commit
586ef58a
authored
Jan 19, 2012
by
stef
Browse files
[fix] corrected stats to confirms>0
parent
1860f06e
Changes
1
Hide whitespace changes
Inline
Side-by-side
bt/views.py
View file @
586ef58a
...
...
@@ -210,9 +210,9 @@ def index(request):
return
render_to_response
(
'index.html'
,
{
'form'
:
form
,
'stats'
:
[
(
_
(
'Total confirmed reports'
),
len
([
i
for
i
,
z
in
reports
if
i
>
1
])),
(
_
(
'Countries with some confirmed reports'
),
len
([
i
for
i
,
z
in
confirms
if
i
>
1
])),
(
_
(
'Operators with some confirmed reports'
),
len
([
i
for
i
,
z
in
operators
if
i
>
1
])),
'stats'
:
[
(
_
(
'Total confirmed reports'
),
len
([
i
for
i
,
z
in
reports
if
i
>
0
])),
(
_
(
'Countries with some confirmed reports'
),
len
([
i
for
i
,
z
in
confirms
if
i
>
0
])),
(
_
(
'Operators with some confirmed reports'
),
len
([
i
for
i
,
z
in
operators
if
i
>
0
])),
],
'violations'
:
v_list
},
context_instance
=
RequestContext
(
request
))
...
...
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