diff --git a/pagure/api/__init__.py b/pagure/api/__init__.py index def1205..a07f195 100644 --- a/pagure/api/__init__.py +++ b/pagure/api/__init__.py @@ -28,7 +28,7 @@ API = flask.Blueprint('api_ns', __name__, url_prefix='/api/0') import pagure # noqa: E402 import pagure.lib # noqa: E402 -import pagure.lib.tasks +import pagure.lib.tasks # noqa: E402 from pagure import __api_version__, APP, SESSION, authenticated # noqa: E402 from pagure.doc_utils import load_doc, modify_rst, modify_html # noqa: E402 from pagure.exceptions import APIError # noqa: E402 @@ -324,7 +324,7 @@ def api_task_status(taskid): output = {'ready': False, 'status': result.status} else: - output = {'ready': True, + output = {'ready': True, 'succesful': result.succesful(), 'status': result.status} diff --git a/pagure/ui/app.py b/pagure/ui/app.py index a771613..5b9bc41 100644 --- a/pagure/ui/app.py +++ b/pagure/ui/app.py @@ -492,7 +492,6 @@ def wait_task(taskid): result = pagure.lib.tasks.get_result(taskid) if result.ready: result = result.get(timeout=0) - print result endpoint = result.pop('endpoint') return flask.redirect( flask.url_for(endpoint, **result)) diff --git a/tests/test_pagure_flask_ui_app.py b/tests/test_pagure_flask_ui_app.py index d7863e7..d76444e 100644 --- a/tests/test_pagure_flask_ui_app.py +++ b/tests/test_pagure_flask_ui_app.py @@ -274,7 +274,7 @@ class PagureFlaskApptests(tests.Modeltests): user.username = 'foo' with tests.user_set(pagure.APP, user): - data['csrf_token'] = csrf_token + data['csrf_token'] = csrf_token output = self.app.post('/new/', data=data, follow_redirects=True) self.assertEqual(output.status_code, 200) self.assertIn(