forked from rDrama/rDrama
master
parent
333d1bd6da
commit
d7141cd9fe
|
@ -106,6 +106,9 @@ def award_post(pid, v):
|
||||||
if kind in ACTIONS:
|
if kind in ACTIONS:
|
||||||
ACTIONS[kind](post=post)
|
ACTIONS[kind](post=post)
|
||||||
|
|
||||||
|
post.author.received_award_count += 1
|
||||||
|
g.db.add(post.author)
|
||||||
|
|
||||||
return "", 204
|
return "", 204
|
||||||
|
|
||||||
|
|
||||||
|
@ -167,6 +170,9 @@ def award_comment(cid, v):
|
||||||
if kind in ACTIONS:
|
if kind in ACTIONS:
|
||||||
ACTIONS[kind](comment=c)
|
ACTIONS[kind](comment=c)
|
||||||
|
|
||||||
|
c.author.received_award_count += 1
|
||||||
|
g.db.add(c.author)
|
||||||
|
|
||||||
return "", 204
|
return "", 204
|
||||||
|
|
||||||
@app.get("/admin/user_award")
|
@app.get("/admin/user_award")
|
||||||
|
|
Loading…
Reference in New Issue