From 20c3bf0185bc21e9d7a854df86cfa7d40f89b0a2 Mon Sep 17 00:00:00 2001 From: Aevann1 Date: Sun, 2 Jan 2022 19:13:21 +0200 Subject: [PATCH] fdsfds --- files/routes/awards.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/files/routes/awards.py b/files/routes/awards.py index 859702c1d..2e7b7db4c 100644 --- a/files/routes/awards.py +++ b/files/routes/awards.py @@ -216,7 +216,7 @@ def award_post(pid, v): AwardRelationship.user_id == v.id, AwardRelationship.kind == kind ) - ).one_or_none() + ).first() post_award.submission_id = post.id g.db.add(post_award) @@ -390,7 +390,7 @@ def award_comment(cid, v): AwardRelationship.user_id == v.id, AwardRelationship.kind == kind ) - ).one_or_none() + ).first() comment_award.comment_id = c.id g.db.add(comment_award)