mirror of
https://github.com/rommapp/romm.git
synced 2026-11-30 02:22:44 +01:00
startup and scan are not async anymore
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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...")
|
||||
|
||||
Reference in New Issue
Block a user