We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
not
is
1 parent 5d84ac7 commit e39aa98Copy full SHA for e39aa98
1 file changed
cms/server/admin/handlers/user.py
@@ -54,9 +54,9 @@ def get(self, user_id):
54
.all()
55
self.r_params["unassigned_contests"] = \
56
self.sql_session.query(Contest)\
57
- .filter(not Contest.id.in_(
+ .filter(Contest.id.notin_(
58
self.sql_session.query(Participation.contest_id)
59
- .filter(Participation.user is user)
+ .filter(Participation.user == user)
60
.all()))\
61
62
self.render("user.html", **self.r_params)
0 commit comments