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
65fc14c8
Commit
65fc14c8
authored
Feb 15, 2016
by
Okhin
Browse files
Syntax in view #22
parent
5627330d
Changes
1
Hide whitespace changes
Inline
Side-by-side
bt/views.py
View file @
65fc14c8
...
@@ -211,7 +211,7 @@ class AddForm(FormView):
...
@@ -211,7 +211,7 @@ class AddForm(FormView):
context
[
'stats'
]
=
[
context
[
'stats'
]
=
[
(
_
(
'Total confirmed reorts'
),
len
([
i
for
i
,
z
in
reports
if
i
>
0
])),
(
_
(
'Total confirmed reorts'
),
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
])),
(
_
(
'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
oprators
if
i
>
0
]))]
(
_
(
'Operators with some confirmed reports'
),
len
([
i
for
i
,
z
in
op
e
rators
if
i
>
0
]))]
return
context
return
context
class
ViolationsList
(
ListView
):
class
ViolationsList
(
ListView
):
...
...
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