From 6ca253a251e14a9a66653bc4f144dedd331522e7 Mon Sep 17 00:00:00 2001 From: extreme4all <40169115+extreme4all@users.noreply.github.com> Date: Tue, 21 May 2024 22:52:31 +0200 Subject: [PATCH] Update report.py (#43) --- src/api/v2/report.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/api/v2/report.py b/src/api/v2/report.py index 2b4b1c5..91c4f8e 100644 --- a/src/api/v2/report.py +++ b/src/api/v2/report.py @@ -16,7 +16,7 @@ async def post_reports(detections: list[Detection]): report = Report() data = await report.parse_data(detections) if not data: - logger.debug(detections[0]) raise HTTPException(status.HTTP_400_BAD_REQUEST, detail="invalid data") + logger.debug(f"Working: {len(data}, {data[0]}") await report.send_to_kafka(data) return Ok()