2022-06-16 01:18:43 +02:00
|
|
|
# May 2022
|
|
|
|
# Hesham T. Banafa <hishaminv@gmail.com>
|
2022-06-07 13:41:48 +02:00
|
|
|
|
|
|
|
from .database import SessionLocal
|
|
|
|
|
|
|
|
def get_db():
|
|
|
|
db = SessionLocal()
|
|
|
|
try:
|
|
|
|
yield db
|
|
|
|
finally:
|
2022-06-11 17:05:52 +02:00
|
|
|
db.close()
|
|
|
|
|
|
|
|
EMERG_TEMP = 50
|
2022-06-12 18:30:14 +02:00
|
|
|
EMERG_SMOKE = 1000
|
2022-06-12 20:53:37 +02:00
|
|
|
EMERG_OPEN_TIME_SEC = 500
|
2022-06-16 01:18:43 +02:00
|
|
|
|