fds
This commit is contained in:
parent
1d230517f0
commit
b247c2daeb
4 changed files with 8 additions and 10 deletions
|
@ -58,7 +58,7 @@ def searchposts(v):
|
|||
|
||||
|
||||
|
||||
posts = g.db.query(Submission).options(lazyload('*'))
|
||||
posts = g.db.query(Submission.id).options(lazyload('*'))
|
||||
|
||||
if not (v and v.admin_level == 6): posts = posts.filter(Submission.private == False)
|
||||
|
||||
|
@ -153,7 +153,7 @@ def searchposts(v):
|
|||
|
||||
total = len(posts)
|
||||
|
||||
ids = [x.id for x in posts]
|
||||
ids = [x[0] for x in posts]
|
||||
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue