forked from rDrama/rDrama
1
0
Fork 0
master
Aevann1 2021-09-05 20:31:19 +02:00
parent 333d1bd6da
commit d7141cd9fe
1 changed files with 6 additions and 0 deletions

View File

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