Commit 7cbae52b authored by stef's avatar stef
Browse files

[fix] missing stuff from refactor

parent 6aaca339
...@@ -12,7 +12,7 @@ from django.contrib import messages ...@@ -12,7 +12,7 @@ from django.contrib import messages
from django.contrib.auth.models import User from django.contrib.auth.models import User
from django.utils.translation import ugettext_lazy as _ from django.utils.translation import ugettext_lazy as _
from django.db.models import Count 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 tempfile import mkstemp
from datetime import datetime from datetime import datetime
import hashlib, os, re, json import hashlib, os, re, json
...@@ -92,7 +92,6 @@ def moderate(request): ...@@ -92,7 +92,6 @@ def moderate(request):
} }
send_mail(msg['subject'], msg['body'], msg['from'], msg['to'], fail_silently=False) send_mail(msg['subject'], msg['body'], msg['from'], msg['to'], fail_silently=False)
s.quit()
if settings.TWITTER_API: if settings.TWITTER_API:
try: 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)) 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))
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment