Fix NameError: _fg_logger undefined in update_focus_group route
_fg_logger was used but never defined, causing a NameError on every PUT /focus-groups/:id request that included llm_model (i.e. all autosave and handleSubmit updates) — resulting in a 500 Internal Server Error. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
f359157949
commit
6917518d11
1 changed files with 1 additions and 1 deletions
|
|
@ -402,7 +402,7 @@ async def update_focus_group(focus_group_id):
|
|||
data = await request.get_json()
|
||||
|
||||
if data and 'llm_model' in data:
|
||||
_fg_logger.debug(f"LLM MODEL UPDATE: {data['llm_model']} for {focus_group_id}")
|
||||
logger.debug(f"LLM MODEL UPDATE: {data['llm_model']} for {focus_group_id}")
|
||||
|
||||
if not data:
|
||||
return jsonify({"message": "No data provided"}), 400
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue