fix 500 error

master
Aevann 2024-02-18 22:09:34 +02:00
parent b0976c5f54
commit 5e7c1ad7bc
1 changed files with 2 additions and 2 deletions

View File

@ -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()