forked from MarseyWorld/MarseyWorld
unmessing with queries
parent
91951ed142
commit
c8b4838157
|
@ -147,7 +147,7 @@ def get_post(i, v=None, graceful=False, rendered=False):
|
|||
posts = post.options(
|
||||
joinedload(Submission.flags),
|
||||
joinedload(Submission.awards),
|
||||
joinedload(Submission.author).joinedload(User.badges),
|
||||
joinedload(Submission.author),
|
||||
joinedload(Submission.options).joinedload(SubmissionOption.votes)
|
||||
)
|
||||
|
||||
|
@ -203,7 +203,7 @@ def get_posts(pids, v=None):
|
|||
isouter=True
|
||||
).options(joinedload(Submission.flags),
|
||||
joinedload(Submission.awards),
|
||||
joinedload(Submission.author).joinedload(User.badges),
|
||||
joinedload(Submission.author),
|
||||
joinedload(Submission.options).joinedload(SubmissionOption.votes)
|
||||
).all()
|
||||
|
||||
|
|
|
@ -174,7 +174,7 @@ def post_id(pid, anything=None, v=None, sub=None):
|
|||
joinedload(Comment.child_comments),
|
||||
joinedload(Comment.flags),
|
||||
joinedload(Comment.awards),
|
||||
joinedload(Comment.author).joinedload(User.badges),
|
||||
joinedload(Comment.author),
|
||||
joinedload(Comment.options).joinedload(CommentOption.votes)
|
||||
)
|
||||
|
||||
|
|
Loading…
Reference in New Issue