feat: desk ia
This commit is contained in:
@@ -1158,7 +1158,7 @@ def auto_assign_template(event_id: int) -> dict:
|
||||
confidence = float(recommendation.get("confidence") or 0.0)
|
||||
|
||||
if tmpl_id and confidence >= 0.6:
|
||||
conn.execute("UPDATE market_events SET template_id = ? WHERE id = ?", (tmpl_id, event_id))
|
||||
conn.execute("UPDATE market_events SET auto_template_id = ? WHERE id = ?", (tmpl_id, event_id))
|
||||
conn.commit()
|
||||
row = conn.execute("SELECT name FROM causal_graph_templates WHERE id = ?", (tmpl_id,)).fetchone()
|
||||
conn.close()
|
||||
@@ -1215,7 +1215,7 @@ Règles : coef intermédiaire ∈ [-5,5] ; coef output en pips, |val| ∈ [30,20
|
||||
json.dumps(graph_json),
|
||||
))
|
||||
new_id = cur.lastrowid
|
||||
conn2.execute("UPDATE market_events SET template_id = ? WHERE id = ?", (new_id, event_id))
|
||||
conn2.execute("UPDATE market_events SET auto_template_id = ? WHERE id = ?", (new_id, event_id))
|
||||
conn2.commit()
|
||||
conn2.close()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user