Causal lab v2
This commit is contained in:
@@ -85,6 +85,15 @@ def startup():
|
||||
from services.geo_analyzer import GEO_PATTERNS
|
||||
from services.database import seed_builtin_patterns
|
||||
seed_builtin_patterns(GEO_PATTERNS)
|
||||
# Seed causal graph templates
|
||||
try:
|
||||
from services.database import get_conn as _get_conn
|
||||
from services.causal_graphs import init_tables as _cg_init, seed_templates as _cg_seed
|
||||
_cg_conn = _get_conn()
|
||||
_cg_init(_cg_conn); _cg_seed(_cg_conn); _cg_conn.close()
|
||||
_log.info("[Startup] Causal graph templates seeded")
|
||||
except Exception as _e:
|
||||
_log.warning(f"[Startup] Causal graph seed failed: {_e}")
|
||||
# Auto-bootstrap désactivé — utiliser les boutons dans Cycle Actions / Timeline
|
||||
# Start auto-cycle scheduler if enabled
|
||||
from services.auto_cycle import start_scheduler
|
||||
|
||||
Reference in New Issue
Block a user