Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
La Quadrature du Net
Respect My Net
Commits
8c503d00
Commit
8c503d00
authored
Nov 19, 2011
by
stef
Browse files
[enh] i18n wrap for new strings
parent
c59a4ab6
Changes
1
Hide whitespace changes
Inline
Side-by-side
bt/views.py
View file @
8c503d00
...
...
@@ -209,11 +209,10 @@ def index(request):
return
render_to_response
(
'index.html'
,
{
'form'
:
form
,
'stats'
:
[
(
'Countries with reports(confirmed)'
,
len
(
countries
),
len
([
i
for
i
,
_
in
confirms
if
i
>
1
])),
(
'Total reports (confirmed)'
,
sum
([
i
for
i
,
_
in
countries
]),
len
([
i
for
i
,
_
in
reports
if
i
>
1
])),
(
'Total Operators with reports(confirmed)'
,
len
(
operators
),
len
([
x
for
x
in
operators
if
x
[
0
]
>
1
])),
(
'Total confirmations(most)'
,
sum
([
i
for
i
,
_
in
confirms
]),
reports
[
0
][
0
]),
'stats'
:
[
(
_
(
'Countries with reports (confirmed)'
),
len
(
countries
),
len
([
i
for
i
,
z
in
confirms
if
i
>
1
])),
(
_
(
'Total reports (confirmed)'
),
sum
([
i
for
i
,
z
in
countries
]),
len
([
i
for
i
,
z
in
reports
if
i
>
1
])),
(
_
(
'Total Operators with reports (confirmed)'
),
len
(
operators
),
len
([
x
for
x
in
operators
if
x
[
0
]
>
1
])),
(
_
(
'Total confirmations (most)'
),
sum
([
i
for
i
,
z
in
confirms
]),
reports
[
0
][
0
]),
],
'violations'
:
v_list
},
context_instance
=
RequestContext
(
request
))
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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