fix feature instance passing

This commit is contained in:
ValueOn AG 2026-03-13 08:29:32 +01:00
parent 77d527eb93
commit 6919a23d4f

View file

@ -209,10 +209,11 @@ def _seedBuiltinPersonas():
"""Seed builtin roleplay personas into the database."""
try:
from .serviceCommcoachPersonas import seedBuiltinPersonas
from .interfaceFeatureCommcoach import CommcoachInterface
from modules.interfaces.interfaceDbManagement import getInterface as getDbInterface
db = getDbInterface()
interface = CommcoachInterface(db)
from .interfaceFeatureCommcoach import getInterface
from modules.datamodels.datamodelUam import User
systemUser = User(id="system", username="system", email="system@poweron.swiss")
interface = getInterface(systemUser)
seedBuiltinPersonas(interface)
except Exception as e:
logger.warning(f"CommCoach persona seeding failed (non-fatal): {e}")