diff --git a/files/helpers/wrappers.py b/files/helpers/wrappers.py index 2dece7a26d..271fd1d336 100644 --- a/files/helpers/wrappers.py +++ b/files/helpers/wrappers.py @@ -21,7 +21,7 @@ def get_logged_in_user(): if not uid or not logged_in or uid != logged_in: return None try: - if g.db: v = g.db.query(User).filter_by(id=uid).first() + if g.db: v = g.db.query(User).filter_by(id=uid).one_or_none() else: return None except: return None diff --git a/files/templates/CHRISTMAS/submission/SubmissionListingActions.html b/files/templates/CHRISTMAS/submission/SubmissionListingActions.html index 1a61906881..4624b6f622 100644 --- a/files/templates/CHRISTMAS/submission/SubmissionListingActions.html +++ b/files/templates/CHRISTMAS/submission/SubmissionListingActions.html @@ -24,9 +24,9 @@ {% if v %} Save Unsave - {% endif %} - + Report + {% endif %} {% if v and v.id==p.author_id %} Pin to profile diff --git a/files/templates/comments.html b/files/templates/comments.html index 6c51890b48..feb99311c8 100644 --- a/files/templates/comments.html +++ b/files/templates/comments.html @@ -302,17 +302,17 @@