From a2a0452db8a1b83967b2ad598e704c841c15337f Mon Sep 17 00:00:00 2001 From: Mateusz779 Date: Fri, 14 Apr 2023 15:49:19 +0200 Subject: [PATCH] - --- app.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/app.py b/app.py index 154fc53..7caa83c 100644 --- a/app.py +++ b/app.py @@ -162,9 +162,8 @@ def release_allocation(): return jsonify(message="400") except: pass - print(id_allocation) if id_allocation is not None: - print(db.del_image_allocation_id_image(id_allocation)) + db.del_image_allocation_id_image(id_allocation) else: return jsonify(message="404") @@ -174,7 +173,7 @@ def release_allocation(): def add_ip(): try: token = request.headers['token'] - ip = request.headers['ip'] + ip = request.data['ip'] except: pass print(token, ip)