27.01.26
This commit is contained in:
3
app.py
3
app.py
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user