Skip to content

Commit

Permalink
<> is a syntax error in Python 3, use != instead
Browse files Browse the repository at this point in the history
  • Loading branch information
cclauss authored Nov 26, 2018
1 parent c5f6f91 commit ac3b83e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion walle/model/space.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ def list(self, page=0, size=10, kw=None):
query = query.filter(SpaceModel.name.like('%' + kw + '%'))

# TODO 如果是超管,可以全量,否则需要过滤自己有权限的空间列表
if current_user.role <> SUPER:
if current_user.role != SUPER:
query = query.filter_by(user_id=current_user.id)
count = query.count()
data = query.order_by(SpaceModel.id.desc()).offset(int(size) * int(page)).limit(size).all()
Expand Down

0 comments on commit ac3b83e

Please sign in to comment.