From 5e7c1ad7bc98b8c7cf68aef633b783d460a45a90 Mon Sep 17 00:00:00 2001 From: Aevann Date: Sun, 18 Feb 2024 22:09:34 +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 2ec0461f61..3c3753cfbe 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(private=False) + listing = listing.filter_by(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(private=False) + listing = listing.filter_by(draft=False) total = listing.count()