sql_app: Add correct door mac

Signed-off-by: HeshamTB <hishaminv@gmail.com>
This commit is contained in:
HeshamTB 2022-06-07 20:01:43 +03:00
parent 6f45fc95aa
commit 0125f3e5fc
Signed by: Hesham
GPG Key ID: 74876157D199B09E

View File

@ -47,7 +47,7 @@ def init_user():
res = crud.set_user_last_token(db, user.username, token) res = crud.set_user_last_token(db, user.username, token)
def init_door(): def init_door():
iot_door = schemas.IotEntityCreate(bluetooth_mac="ff:ff:ff:ff", iot_door = schemas.IotEntityCreate(bluetooth_mac="94:b9:7e:fb:57:1a",
description="Iot Lab Door") description="Iot Lab Door")
door_exists = crud.get_iot_entity_by_bluetooth_mac(db, iot_door.bluetooth_mac) door_exists = crud.get_iot_entity_by_bluetooth_mac(db, iot_door.bluetooth_mac)
if door_exists: return if door_exists: return