This commit is contained in:
2026-01-27 21:43:55 +01:00
parent ac653a4dd0
commit 63b50f279b

3
app.py
View File

@@ -606,10 +606,11 @@ def create_weight_report(payload: dict = Body(...)):
status_code=500,
detail="Stored procedure returned no data"
)
logger.info("Columns returned: %s", [column[0] for column in cursor.description])
return {
"success": True,
"weight_report_key": row.OUT_WEIGHT_REPORT_KEY
"weight_report_key": row[0]
}
except Exception as e: