forked from rDrama/rDrama
fdfd
parent
71711674a6
commit
e582266d93
|
@ -87,7 +87,7 @@ def api_vote_post(post_id, new, v):
|
||||||
vote = Vote(user_id=v.id,
|
vote = Vote(user_id=v.id,
|
||||||
vote_type=new,
|
vote_type=new,
|
||||||
submission_id=post_id,
|
submission_id=post_id,
|
||||||
app_id=v.client.application.id if v.client else None
|
# app_id=v.client.application.id if v.client else None
|
||||||
)
|
)
|
||||||
g.db.add(vote)
|
g.db.add(vote)
|
||||||
|
|
||||||
|
@ -135,7 +135,7 @@ def api_vote_comment(comment_id, new, v):
|
||||||
vote = CommentVote(user_id=v.id,
|
vote = CommentVote(user_id=v.id,
|
||||||
vote_type=new,
|
vote_type=new,
|
||||||
comment_id=comment_id,
|
comment_id=comment_id,
|
||||||
app_id=v.client.application.id if v.client else None
|
# app_id=v.client.application.id if v.client else None
|
||||||
)
|
)
|
||||||
|
|
||||||
g.db.add(vote)
|
g.db.add(vote)
|
||||||
|
|
Loading…
Reference in New Issue