From bf8220dcc13762bf70e260be3ebbfc9aaba0093d Mon Sep 17 00:00:00 2001 From: Aevann1 Date: Sat, 24 Jul 2021 23:54:56 +0200 Subject: [PATCH] fd --- drama/helpers/get.py | 4 ++-- drama/routes/front.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/drama/helpers/get.py b/drama/helpers/get.py index 2ef6ddba9..880055714 100644 --- a/drama/helpers/get.py +++ b/drama/helpers/get.py @@ -165,8 +165,8 @@ def get_posts(pids, sort="hot", v=None): ).join( blocked, blocked.c.user_id == Submission.author_id, - isouter=True - ).order_by(Submission.id.desc()).all() + isouter=True) + # ).order_by(Submission.id.desc()).all() output = [p[0] for p in query] for i in range(len(output)): diff --git a/drama/routes/front.py b/drama/routes/front.py index f5887ca2a..133fc5def 100644 --- a/drama/routes/front.py +++ b/drama/routes/front.py @@ -146,7 +146,7 @@ def frontlist(v=None, sort="hot", page=1,t="all", ids_only=True, filter_words='' if page == 1: posts = g.db.query(Submission).filter_by(stickied=True).all() + posts - words = [' captainmeta4 ', ' cm4 ', ' dissident001 ', ' ladine '] + words = ['captainmeta4', ' cm4 ', 'dissident001', 'ladine'] for post in posts: if post.author and post.author.admin_level == 0: