diff --git a/pagure/api/project.py b/pagure/api/project.py index a568557..d5a272b 100644 --- a/pagure/api/project.py +++ b/pagure/api/project.py @@ -150,6 +150,6 @@ def api_projects(): 404, error_code=APIERROR.ENOPROJECTS) jsonout = flask.jsonify({ - 'projects': [ p.to_json(api=True, public=True) for p in projects] + 'projects': [p.to_json(api=True, public=True) for p in projects] }) return jsonout diff --git a/pagure/lib/model.py b/pagure/lib/model.py index f5cd459..0d974c6 100644 --- a/pagure/lib/model.py +++ b/pagure/lib/model.py @@ -828,7 +828,7 @@ class PullRequest(BASE): ''' Return whether the current PullRequest is a remote pull-request or not. ''' - return not self.remote_git is None + return self.remote_git is not None def to_json(self, public=False, api=False): ''' Returns a dictionnary representation of the pull-request.