From 93aebbec11c97341e7ce970bf230bd19401c5fee Mon Sep 17 00:00:00 2001 From: zurdi zurdo Date: Mon, 10 Apr 2023 19:15:30 +0200 Subject: [PATCH] fix async scan --- backend/src/main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/src/main.py b/backend/src/main.py index 740866b07..2ce2104e8 100644 --- a/backend/src/main.py +++ b/backend/src/main.py @@ -27,7 +27,7 @@ def startup() -> None: @app.put("/scan") -def scan(req: Request, full_scan: bool=False, overwrite: bool=False) -> dict: +async 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...")