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,
|
||||||
blocked.c.user_id == Submission.author_id,
|
blocked.c.user_id == Submission.author_id,
|
||||||
isouter=True
|
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]
|
output = [p[0] for p in query]
|
||||||
for i in range(len(output)):
|
for i in range(len(output)):
|
||||||
|
|
Loading…
Reference in New Issue