From cd6735abd076698880b048a1a53d4a9b5f73342b Mon Sep 17 00:00:00 2001 From: Martin Quarda Date: Mon, 5 Aug 2024 15:35:50 +0200 Subject: [PATCH] sixth try --- alkatorapi/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/alkatorapi/views.py b/alkatorapi/views.py index b4d7e9b..bd6db03 100644 --- a/alkatorapi/views.py +++ b/alkatorapi/views.py @@ -67,7 +67,7 @@ def register(request): result = parse_qs(result.text) - if result['code'][0] != 0: + if result['code'][0] != '0': user.delete() return HttpResponse('{"reason":"Chyba na straně platevní brány: ' + result['message'][0] + '"}', status=400, content_type='application/json')