Fix avatar API to return all fields, add TMPDIR workaround to import script
- Use to_encoach_dict() for /api/exam/avatars so voiceId, voiceProvider, canvas are included in the response - Set TMPDIR=/tmp in import script for PyTorch compatibility in Docker Made-with: Cursor
This commit is contained in:
@@ -1,7 +1,8 @@
|
||||
"""Import training tips from pathways JSON into encoach.training.tip model.
|
||||
|
||||
Run inside the Odoo container via:
|
||||
odoo shell -d encoach < /mnt/custom/scripts/import_training_tips.py
|
||||
odoo shell -d encoach --db_host=db --db_user=odoo --db_password=<pw> \
|
||||
--no-http --addons-path=... < /mnt/custom/scripts/import_training_tips.py
|
||||
|
||||
This script:
|
||||
1. Reads pathways_2_rw.json
|
||||
@@ -13,6 +14,8 @@ import os
|
||||
import pickle
|
||||
import sys
|
||||
|
||||
os.environ.setdefault("TMPDIR", "/tmp")
|
||||
|
||||
JSON_PATH = os.environ.get(
|
||||
"TIPS_JSON_PATH",
|
||||
"/mnt/custom/scripts/pathways_2_rw.json",
|
||||
|
||||
Reference in New Issue
Block a user