|
@ -43,8 +43,8 @@ if json_data != "" and json_data != None: |
|
|
print("parking reserved. RESPONSE :", r.status_code, "\n") |
|
|
print("parking reserved. RESPONSE :", r.status_code, "\n") |
|
|
elif parkingStatus == "0": |
|
|
elif parkingStatus == "0": |
|
|
print("parking not reserved. RESPONSE : ", r.status_code, "\n") |
|
|
print("parking not reserved. RESPONSE : ", r.status_code, "\n") |
|
|
data = """{"no":""" + parkingCode + ""","status":""" + parkingStatus + """}""" |
|
|
data = """{"no":""" + parkingCode + ""","status":""" + parkingStatus + """}""" |
|
|
r = requests.post(url = API_ENDPOINT, data = data) |
|
|
r = requests.post(url = API_ENDPOINT, data = data) |
|
|
except NameError: |
|
|
except NameError: |
|
|
print("**Not already prev variable.\n") |
|
|
print("**Not already prev variable.\n") |
|
|
prev_status = park_status |
|
|
prev_status = park_status |
|
|