Skip to content
Snippets Groups Projects
Commit f1828dda authored by Martin Mareš's avatar Martin Mareš
Browse files

Fix order of posts

parent e196f648
No related branches found
No related tags found
No related merge requests found
......@@ -164,6 +164,7 @@ def topic_index(sident: str, cident: str, tident: str, student_uid: Optional[int
.filter(or_(
db.Post.target_uid == -1,
db.Post.target_uid == student_uid))
.order_by(db.Post.created)
.options(joinedload(db.Post.author))
))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment