Remove print statements.
I was originally going to switch to print function, but frankly I can't see any reason to keep these. I don't know what data it's leaking into the logs, but it certainly doesn't seem useful StringIO is not in Py3. And it's not used at all, so removing that import. Seems to work with Py3 now. More testing is required.
This commit is contained in:
parent
de08802d5b
commit
ecf14b514d
1 changed files with 0 additions and 3 deletions
|
@ -1,6 +1,5 @@
|
||||||
import csv
|
import csv
|
||||||
import random
|
import random
|
||||||
import StringIO
|
|
||||||
|
|
||||||
from django.contrib.auth.decorators import login_required
|
from django.contrib.auth.decorators import login_required
|
||||||
from django.core.mail import send_mass_mail
|
from django.core.mail import send_mass_mail
|
||||||
|
@ -291,8 +290,6 @@ def review_admin(request, section_slug):
|
||||||
user=user,
|
user=user,
|
||||||
proposal__kind__section__slug=section_slug,
|
proposal__kind__section__slug=section_slug,
|
||||||
)
|
)
|
||||||
print section_slug
|
|
||||||
print [vote.proposal.kind.section.slug for vote in user_votes]
|
|
||||||
user.total_votes = user_votes.exclude(
|
user.total_votes = user_votes.exclude(
|
||||||
vote=LatestVote.VOTES.ABSTAIN,
|
vote=LatestVote.VOTES.ABSTAIN,
|
||||||
).count()
|
).count()
|
||||||
|
|
Loading…
Reference in a new issue