Skip to content

Commit 397798a

Browse files
committed
feat: add entire list of scanner statuses retrieval endpoint
Relates #57
1 parent 8d62a58 commit 397798a

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

src/modules/scanning/routes.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -137,6 +137,15 @@ async def get_scanner_capabilities_debug(
137137
return Response(response, media_type="application/xml")
138138

139139

140+
@router.get("/debug/get_scanners_status")
141+
async def get_printers_status(_innohassle_user_id: USER_AUTH) -> list[ScannerStatus]:
142+
result: list[ScannerStatus] = await asyncio.gather(
143+
*(scanning_repository.get_scanner_status(scanner) for scanner in settings.api.scanners_list)
144+
)
145+
146+
return result
147+
148+
140149
@router.get("/debug/get_scanner_status")
141150
async def get_scanner_status(
142151
_innohassle_user_id: USER_AUTH,

0 commit comments

Comments
 (0)