From c6cf78836fc6074e97aa4b6a6a2e4badbf302604 Mon Sep 17 00:00:00 2001 From: cs151051 Date: Tue, 26 Nov 2019 00:21:16 +0200 Subject: [PATCH] v1.1 --- gatewayNode/parking.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gatewayNode/parking.py b/gatewayNode/parking.py index 2e24e06..04a3dc6 100644 --- a/gatewayNode/parking.py +++ b/gatewayNode/parking.py @@ -43,8 +43,8 @@ if json_data != "" and json_data != None: print("parking reserved. RESPONSE :", r.status_code, "\n") elif parkingStatus == "0": print("parking not reserved. RESPONSE : ", r.status_code, "\n") - data = """{"no":""" + parkingCode + ""","status":""" + parkingStatus + """}""" - r = requests.post(url = API_ENDPOINT, data = data) + data = """{"no":""" + parkingCode + ""","status":""" + parkingStatus + """}""" + r = requests.post(url = API_ENDPOINT, data = data) except NameError: print("**Not already prev variable.\n") prev_status = park_status