Skip to content

Commit

Permalink
Update report.py
Browse files Browse the repository at this point in the history
  • Loading branch information
extreme4all authored May 21, 2024
1 parent c9640e3 commit 1bfd574
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/api/v2/report.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()

0 comments on commit 1bfd574

Please sign in to comment.