cxv
This commit is contained in:
parent
2921f52e3b
commit
2464775210
4 changed files with 12 additions and 8 deletions
|
@ -259,6 +259,8 @@ def api_vote_choice(comment_id, v):
|
|||
else: parent = comment.post
|
||||
|
||||
for vote in parent.total_choice_voted(v):
|
||||
vote.comment.upvotes = g.db.query(CommentVote.id).filter_by(comment_id=vote.comment.id, vote_type=1).count() - 1
|
||||
g.db.add(vote.comment)
|
||||
g.db.delete(vote)
|
||||
|
||||
try:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue