fix first run

This commit is contained in:
matthias@matsewe.de
2024-07-02 14:20:09 +02:00
parent 9e28915419
commit 6cd77cca50

View File

@@ -23,7 +23,7 @@ if os.path.isfile("/tmp/first_run") and (os.environ.get("RELOAD_ON_FIRST_RUN", "
print("First run ... load data")
with SessionLocal() as 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)