forked from MarseyWorld/MarseyWorld
fddf
parent
bf8220dcc1
commit
e43b5f1d05
|
@ -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)):
|
||||
|
|
|
@ -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(
|
||||
|
|
Loading…
Reference in New Issue