HeshamTB
7f90e104d3
For some reason, having 3600 set as the time for door to stay open in a case of fire does not open the door at all. Prob a limtiation in door implementation Signed-off-by: HeshamTB <hishaminv@gmail.com>
14 lines
195 B
Python
14 lines
195 B
Python
|
|
from .database import SessionLocal
|
|
|
|
def get_db():
|
|
db = SessionLocal()
|
|
try:
|
|
yield db
|
|
finally:
|
|
db.close()
|
|
|
|
EMERG_TEMP = 50
|
|
EMERG_SMOKE = 1000
|
|
EMERG_OPEN_TIME_SEC = 500
|