From d7141cd9fed051d53c43cd37cb7ea773d43dac12 Mon Sep 17 00:00:00 2001 From: Aevann1 Date: Sun, 5 Sep 2021 20:31:19 +0200 Subject: [PATCH] fd --- files/routes/awards.py | 6 ++++++ 1 file changed, 6 insertions(+) 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")