From e2294a637c7f54eb857095322dd3af6d37bb3115 Mon Sep 17 00:00:00 2001 From: Aevann1 Date: Sun, 19 Dec 2021 01:42:35 +0200 Subject: [PATCH] fdsfds --- files/helpers/wrappers.py | 2 +- .../CHRISTMAS/submission/SubmissionListingActions.html | 4 ++-- files/templates/comments.html | 10 +++++----- files/templates/submission.html | 3 +-- files/templates/submission_listing.html | 4 ++-- 5 files changed, 11 insertions(+), 12 deletions(-) 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 @@