forked from MarseyWorld/MarseyWorld
cutting down on query volume
parent
0dbe7fe25f
commit
05aa116a8a
|
@ -190,7 +190,7 @@ def get_posts(pids, v=None):
|
|||
blocked,
|
||||
blocked.c.user_id == Submission.author_id,
|
||||
isouter=True
|
||||
).options(joinedload(Submission.flags), joinedload(Submission.awards)).all()
|
||||
).options(joinedload(Submission.flags), joinedload(Submission.awards), joinedload(Submission.author), joinedload(Submission.author, User.badges)).all()
|
||||
|
||||
output = [p[0] for p in query]
|
||||
for i in range(len(output)):
|
||||
|
|
Loading…
Reference in New Issue