Skip to content

Commit

Permalink
unknown bug
Browse files Browse the repository at this point in the history
  • Loading branch information
seagullbird committed Dec 21, 2016
1 parent 33d9cc5 commit 26009b8
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions app/user/views.py
Expand Up @@ -38,6 +38,7 @@ def category(username, category_name):
host_user = User.query.filter_by(username=username).first()
category = Category.query.filter_by(
name=category_name, author_id=host_user.id).first()
print(host_user, category)
if not host_user or not category:
abort(404)
# 添加分页
Expand Down

0 comments on commit 26009b8

Please sign in to comment.