Skip to content

Commit

Permalink
PEP8
Browse files Browse the repository at this point in the history
  • Loading branch information
ajrbyers committed Mar 9, 2018
1 parent 87aa149 commit 7683f29
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .scrub.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,6 @@

autopep8 \
--in-place --recursive --aggressive \
--ignore E501,E401,E309 \
--ignore E501,E309 \
--exclude *.html \
src/
2 changes: 1 addition & 1 deletion src/metrics/logic.py
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ def store_article_access(request, article, access_type, galley_type='view'):
user_agent = parse_ua_string(request.META.get('HTTP_USER_AGENT', None))
except TypeError:
user_agent = None

counter_tracking_id = request.session.get('counter_tracking')
identifier = counter_tracking_id if counter_tracking_id else shared.get_ip_address(request)

Expand Down
4 changes: 2 additions & 2 deletions src/review/logic.py
Original file line number Diff line number Diff line change
Expand Up @@ -295,7 +295,7 @@ def serve_review_file(assignment):
document = Document()
document.add_heading('Review #{pk}'.format(pk=assignment.pk), 0)
document.add_heading('Review of `{article_title}` by {reviewer}'.format(article_title=assignment.article.title,
reviewer=assignment.reviewer.full_name()),
reviewer=assignment.reviewer.full_name()),
level=1)
document.add_paragraph()
document.add_paragraph('Complete the form below, then upload it under the "FILE UPLOAD" section on your review page'
Expand All @@ -321,4 +321,4 @@ def serve_review_file(assignment):
filename = '{uuid}.docx'.format(uuid=uuid4())
filepath = os.path.join(settings.BASE_DIR, 'files', 'temp', filename)
document.save(filepath)
return files.serve_temp_file(filepath, filename)
return files.serve_temp_file(filepath, filename)
3 changes: 2 additions & 1 deletion src/utils/logic.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import hashlib, hmac
import hashlib
import hmac

from django.conf import settings

Expand Down

0 comments on commit 7683f29

Please sign in to comment.