fddf
This commit is contained in:
parent
468dd7e4f4
commit
92a21f186f
2 changed files with 1 additions and 2 deletions
|
@ -166,7 +166,6 @@ def get_posts(pids, sort="hot", v=None):
|
||||||
blocked,
|
blocked,
|
||||||
blocked.c.user_id == Submission.author_id,
|
blocked.c.user_id == Submission.author_id,
|
||||||
isouter=True)
|
isouter=True)
|
||||||
# ).order_by(Submission.id.desc()).all()
|
|
||||||
|
|
||||||
output = [p[0] for p in query]
|
output = [p[0] for p in query]
|
||||||
for i in range(len(output)):
|
for i in range(len(output)):
|
||||||
|
|
|
@ -72,7 +72,7 @@ def notifications(v):
|
||||||
@cache.memoize(timeout=1500)
|
@cache.memoize(timeout=1500)
|
||||||
def frontlist(v=None, sort="hot", page=1,t="all", ids_only=True, filter_words='', **kwargs):
|
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:
|
if v and v.admin_level == 0:
|
||||||
blocking = g.db.query(
|
blocking = g.db.query(
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue