forked from MarseyWorld/MarseyWorld
testing
parent
e8f5827c5e
commit
9ffc3015e2
|
@ -141,7 +141,7 @@ def get_post(i, v=None, graceful=False, rendered=False):
|
||||||
)
|
)
|
||||||
|
|
||||||
if rendered:
|
if rendered:
|
||||||
posts = post.options(joinedload(Submission.flags), joinedload(Submission.awards))
|
posts = post.options(joinedload(Submission.flags), joinedload(Submission.awards), joinedload(Submission.author))
|
||||||
|
|
||||||
post=post.one_or_none()
|
post=post.one_or_none()
|
||||||
|
|
||||||
|
@ -193,7 +193,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)).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)):
|
||||||
|
|
|
@ -170,7 +170,7 @@ def post_id(pid, anything=None, v=None, sub=None):
|
||||||
blocked,
|
blocked,
|
||||||
blocked.c.user_id == Comment.author_id,
|
blocked.c.user_id == Comment.author_id,
|
||||||
isouter=True
|
isouter=True
|
||||||
).options(joinedload(Comment.flags), joinedload(Comment.awards))
|
).options(joinedload(Comment.flags), joinedload(Comment.awards), joinedload(Comment.author))
|
||||||
|
|
||||||
output = []
|
output = []
|
||||||
for c in comments.all():
|
for c in comments.all():
|
||||||
|
|
Loading…
Reference in New Issue