This commit is contained in:
Aevann1 2022-01-02 19:13:21 +02:00
parent 1b078f9fb3
commit c87605e25b

View file

@ -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)