diff --git a/files/routes/awards.py b/files/routes/awards.py index 512072e81..fcb1e77e4 100644 --- a/files/routes/awards.py +++ b/files/routes/awards.py @@ -106,6 +106,9 @@ def award_post(pid, v): if kind in ACTIONS: ACTIONS[kind](post=post) + post.author.received_award_count += 1 + g.db.add(post.author) + return "", 204 @@ -167,6 +170,9 @@ def award_comment(cid, v): if kind in ACTIONS: ACTIONS[kind](comment=c) + c.author.received_award_count += 1 + g.db.add(c.author) + return "", 204 @app.get("/admin/user_award")