From 687b782a8f8d621cc074670d4d55c8383af698a3 Mon Sep 17 00:00:00 2001 From: Laurent Date: Mon, 5 Jan 2026 20:56:35 +0100 Subject: [PATCH] oopsie --- api-customer/src/controllers/analyze_controller.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/api-customer/src/controllers/analyze_controller.py b/api-customer/src/controllers/analyze_controller.py index 61bab70d..27206468 100644 --- a/api-customer/src/controllers/analyze_controller.py +++ b/api-customer/src/controllers/analyze_controller.py @@ -1,4 +1,4 @@ -from flask import jsonify +from flask import jsonify, request from src.services.detection_service import DetectionService @@ -16,7 +16,9 @@ class AnalyzeController: def analyze(self): try : - fen = self._detection_service.analyze_single_frame(None) + payload = request.get_json() + print(payload) + fen = self._detection_service.analyze_single_frame(payload["image"]) return jsonify({"success": False, "payload": {"fen" : fen}}), 200 except Exception as e: print(e)