fix feature instance passing
This commit is contained in:
parent
77d527eb93
commit
6919a23d4f
1 changed files with 5 additions and 4 deletions
|
|
@ -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}")
|
||||
|
|
|
|||
Loading…
Reference in a new issue