Update modules/studentact/claude_recommendations.py
Browse files
modules/studentact/claude_recommendations.py
CHANGED
@@ -190,17 +190,15 @@ def store_recommendations(username, text, metrics, text_type, recommendations):
|
|
190 |
Store the recommendations in the database
|
191 |
"""
|
192 |
try:
|
193 |
-
|
194 |
-
|
195 |
-
|
196 |
-
|
197 |
-
|
198 |
-
|
199 |
-
|
200 |
-
|
201 |
-
}
|
202 |
|
203 |
-
result = store_current_situation_result(result_data)
|
204 |
logger.info(f"Recommendations stored with ID: {result}")
|
205 |
return True
|
206 |
except Exception as e:
|
|
|
190 |
Store the recommendations in the database
|
191 |
"""
|
192 |
try:
|
193 |
+
# Llamar a store_current_situation_result con los argumentos posicionales correctos
|
194 |
+
# La funci贸n espera username, text, metrics y feedback como argumentos posicionales
|
195 |
+
result = store_current_situation_result(
|
196 |
+
username=username,
|
197 |
+
text=text,
|
198 |
+
metrics=metrics,
|
199 |
+
feedback=recommendations # Usamos recommendations como feedback
|
200 |
+
)
|
|
|
201 |
|
|
|
202 |
logger.info(f"Recommendations stored with ID: {result}")
|
203 |
return True
|
204 |
except Exception as e:
|