fix 500 error

master
Aevann 2024-02-18 22:10:48 +02:00
parent 5e7c1ad7bc
commit b34322c52f
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(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()