master
Aevann1 2021-07-24 23:58:11 +02:00
parent bf8220dcc1
commit e43b5f1d05
2 changed files with 1 additions and 2 deletions

View File

@ -166,7 +166,6 @@ def get_posts(pids, sort="hot", v=None):
blocked,
blocked.c.user_id == Submission.author_id,
isouter=True)
# ).order_by(Submission.id.desc()).all()
output = [p[0] for p in query]
for i in range(len(output)):

View File

@ -72,7 +72,7 @@ def notifications(v):
@cache.memoize(timeout=1500)
def frontlist(v=None, sort="hot", page=1,t="all", ids_only=True, filter_words='', **kwargs):
posts = g.db.query(Submission).options(lazyload('*')).filter_by(is_banned=False,stickied=False,private=False).filter(Submission.deleted_utc == 0)
posts = g.db.query(Submission).options(lazyload('*')).filter_by(is_banned=False,stickied=False,private=False).filter(Submission.deleted_utc == 0).order_by(Submission.id.desc())
if v and v.admin_level == 0:
blocking = g.db.query(