startup and scan are not async anymore

This commit is contained in:
zurdi zurdo
2023-04-10 19:05:40 +02:00
parent c13f1c84f4
commit 0da2413a3e
2 changed files with 3 additions and 3 deletions

View File

@@ -106,5 +106,5 @@ level = NOTSET
formatter = generic
[formatter_generic]
format = %(levelname)-5.5s [%(name)s] %(message)s
format = %(levelname)s: [RomM][%(name)s] %(message)s
datefmt = %H:%M:%S

View File

@@ -16,7 +16,7 @@ fastapi.allow_cors(app)
@app.on_event("startup")
async def startup() -> None:
def startup() -> None:
"""Startup application."""
log.info("Applying migrations...")
try:
@@ -27,7 +27,7 @@ async def startup() -> None:
@app.put("/scan")
async def scan(req: Request, full_scan: bool=False, overwrite: bool=False) -> dict:
def scan(req: Request, full_scan: bool=False, overwrite: bool=False) -> dict:
"""Scan platforms and roms and write them in database."""
log.info("complete scaning...")