|
|
@ -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 |
|
|
|