From b34322c52f194ff534c4a8a65a5fdd102b9e758e Mon Sep 17 00:00:00 2001 From: Aevann Date: Sun, 18 Feb 2024 22:10:48 +0200 Subject: [PATCH] fix 500 error --- files/routes/users.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/files/routes/users.py b/files/routes/users.py index 3c3753cfb..5b0dbf3ea 100644 --- a/files/routes/users.py +++ b/files/routes/users.py @@ -175,7 +175,7 @@ def upvoters_downvoters(v, username, username2, cls, vote_cls, vote_dir, templat ) if cls == Post: - listing = listing.filter_by(draft=False) + listing = listing.filter(cls.draft == False) total = listing.count() @@ -241,7 +241,7 @@ def upvoting_downvoting(v, username, username2, cls, vote_cls, vote_dir, templat ) if cls == Post: - listing = listing.filter_by(draft=False) + listing = listing.filter(cls.draft == False) total = listing.count()