From a9a7937ddecb40a35e2d347553d7375bcca154e8 Mon Sep 17 00:00:00 2001 From: Marnanel Thurman Date: Fri, 12 Oct 2018 20:15:12 +0100 Subject: [PATCH] async_result success codes are 0 and 1, not False and True --- django_kepi/tasks.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/django_kepi/tasks.py b/django_kepi/tasks.py index a81c7cd..e472c76 100644 --- a/django_kepi/tasks.py +++ b/django_kepi/tasks.py @@ -29,7 +29,7 @@ def fetch( response = requests.post( result_url, params={ - 'success': fetch.status_code==200, + 'success': int(fetch.status_code==200), 'uuid': result_id, }, data=fetch.text,