diff --git a/files/routes/votes.py b/files/routes/votes.py index 3732453938..18fc7ec85c 100644 --- a/files/routes/votes.py +++ b/files/routes/votes.py @@ -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 def get_vote_count(dir, real_instead_of_dir): votes = g.db.query(vote_cls) - votes = votes.filter_by(vote_type=dir) if real_instead_of_dir: votes = votes.filter_by(real=True) else: