commit/galaxy-central: dannon: Add noqa comments to prevent pep8 from asking folks to change == to 'is' here.
1 new commit in galaxy-central: https://bitbucket.org/galaxy/galaxy-central/commits/1a38b9cf737f/ Changeset: 1a38b9cf737f User: dannon Date: 2014-05-23 18:42:29 Summary: Add noqa comments to prevent pep8 from asking folks to change == to 'is' here. Affected #: 1 file diff -r 1283375984ac83ce18e5a78259b12d49cf86d58d -r 1a38b9cf737f9b54a992e973b124daf73cf32acc lib/galaxy/webapps/galaxy/api/users.py --- a/lib/galaxy/webapps/galaxy/api/users.py +++ b/lib/galaxy/webapps/galaxy/api/users.py @@ -30,12 +30,12 @@ if f_email: query = query.filter(trans.app.model.User.email.like("%%%s%%" % f_email)) if deleted: - query = query.filter( trans.app.model.User.table.c.deleted == True ) + query = query.filter( trans.app.model.User.table.c.deleted == True ) # noqa # only admins can see deleted users if not trans.user_is_admin(): return [] else: - query = query.filter( trans.app.model.User.table.c.deleted == False ) + query = query.filter( trans.app.model.User.table.c.deleted == False ) # noqa # special case: user can see only their own user if not trans.user_is_admin(): item = trans.user.to_dict( value_mapper={ 'id': trans.security.encode_id } ) Repository URL: https://bitbucket.org/galaxy/galaxy-central/ -- This is a commit notification from bitbucket.org. You are receiving this because you have the service enabled, addressing the recipient of this email.
participants (1)
-
commits-noreply@bitbucket.org