forked from rDrama/rDrama
ree
parent
ab6aaf5787
commit
7ee3c78b2e
|
@ -122,7 +122,6 @@ def vote_post_comment(target_id, new, v, cls, vote_cls):
|
||||||
# this is hacky but it works, we should probably do better later
|
# this is hacky but it works, we should probably do better later
|
||||||
def get_vote_count(dir, real_instead_of_dir):
|
def get_vote_count(dir, real_instead_of_dir):
|
||||||
votes = g.db.query(vote_cls)
|
votes = g.db.query(vote_cls)
|
||||||
votes = votes.filter_by(vote_type=dir)
|
|
||||||
if real_instead_of_dir:
|
if real_instead_of_dir:
|
||||||
votes = votes.filter_by(real=True)
|
votes = votes.filter_by(real=True)
|
||||||
else:
|
else:
|
||||||
|
|
Loading…
Reference in New Issue