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
La Quadrature du Net
Respect My Net
Commits
7cbae52b
Commit
7cbae52b
authored
Oct 21, 2012
by
stef
Browse files
[fix] missing stuff from refactor
parent
6aaca339
Changes
1
Hide whitespace changes
Inline
Side-by-side
bt/views.py
View file @
7cbae52b
...
...
@@ -12,7 +12,7 @@ from django.contrib import messages
from
django.contrib.auth.models
import
User
from
django.utils.translation
import
ugettext_lazy
as
_
from
django.db.models
import
Count
from
models
import
Violation
,
Attachment
,
Comment
,
Confirmation
,
COUNTRIES
,
STATUS
from
models
import
Violation
,
Attachment
,
Comment
,
Confirmation
,
COUNTRIES
,
STATUS
,
Operator
from
tempfile
import
mkstemp
from
datetime
import
datetime
import
hashlib
,
os
,
re
,
json
...
...
@@ -92,7 +92,6 @@ def moderate(request):
}
send_mail
(
msg
[
'subject'
],
msg
[
'body'
],
msg
[
'from'
],
msg
[
'to'
],
fail_silently
=
False
)
s
.
quit
()
if
settings
.
TWITTER_API
:
try
:
settings
.
TWITTER_API
.
PostUpdate
(
"New #NetNeutrality violation reported for %s (%s) %s %s/%s"
%
(
v
.
operator
,
v
.
country
,
v
.
contract
,
settings
.
ROOT_URL
or
'http://localhost:8001/'
,
v
.
id
))
...
...
Write
Preview
Markdown
is supported
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