Browse Source

v1.1

master
cs151051 5 years ago
parent
commit
c6cf78836f
  1. 4
      gatewayNode/parking.py

4
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

Loading…
Cancel
Save