fix first run
This commit is contained in:
@@ -23,7 +23,7 @@ if os.path.isfile("/tmp/first_run") and (os.environ.get("RELOAD_ON_FIRST_RUN", "
|
|||||||
print("First run ... load data")
|
print("First run ... load data")
|
||||||
with SessionLocal() as db:
|
with SessionLocal() as db:
|
||||||
asyncio.run(admin.create_upload_file(include_non_singable=True, db=db))
|
asyncio.run(admin.create_upload_file(include_non_singable=True, db=db))
|
||||||
os.remove("first_run")
|
os.remove("/tmp/first_run")
|
||||||
|
|
||||||
# Base.metadata.create_all(engine)
|
# Base.metadata.create_all(engine)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user