cutting down on query volume

master
Aevann1 2022-07-01 03:18:06 +02:00
parent 0dbe7fe25f
commit 05aa116a8a
1 changed files with 1 additions and 1 deletions

View File

@ -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)):