From 6919a23d4fe3c4046f0923155d30690ad071098f Mon Sep 17 00:00:00 2001 From: ValueOn AG Date: Fri, 13 Mar 2026 08:29:32 +0100 Subject: [PATCH] fix feature instance passing --- modules/features/commcoach/mainCommcoach.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/modules/features/commcoach/mainCommcoach.py b/modules/features/commcoach/mainCommcoach.py index 6da38087..69ac6b1c 100644 --- a/modules/features/commcoach/mainCommcoach.py +++ b/modules/features/commcoach/mainCommcoach.py @@ -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}")