mirror of
https://gitlab.com/SIGBUS/nyaa.git
synced 2025-02-03 15:21:35 +00:00
Fix mods' comment list filter
This commit is contained in:
parent
362b3e3dfa
commit
d4fcd36b1b
|
@ -245,7 +245,7 @@ def view_user_comments(user_name):
|
|||
|
||||
comments_per_page = 100
|
||||
|
||||
comments_query = (models.Comment.query.filter(models.Comment.user_id)
|
||||
comments_query = (models.Comment.query.filter(models.Comment.user == user)
|
||||
.order_by(models.Comment.created_time.desc()))
|
||||
comments_query = comments_query.paginate_faste(page_number, per_page=comments_per_page, step=5)
|
||||
return flask.render_template('user_comments.html',
|
||||
|
|
Loading…
Reference in a new issue