use proper get function

master
justcool393 2022-10-11 06:37:40 -07:00
parent 998b966f2b
commit 9ec3fb3b51
1 changed files with 7 additions and 2 deletions

View File

@ -78,7 +78,12 @@ def upvoting_downvoting(v, username, uid, cls, vote_cls, vote_dir, template, sta
next_exists = len(listing) > 25 next_exists = len(listing) > 25
listing = listing[:25] listing = listing[:25]
if cls == Submission:
listing = get_posts(listing, v=v) listing = get_posts(listing, v=v)
elif cls == Comment:
listing = get_comments(listing, v=v)
else:
listing = []
return render_template(template, next_exists=next_exists, listing=listing, page=page, v=v, standalone=standalone) return render_template(template, next_exists=next_exists, listing=listing, page=page, v=v, standalone=standalone)