1
This commit is contained in:
@@ -188,12 +188,17 @@ async def _seed_data():
|
||||
existing = await db.execute(
|
||||
select(SystemConfig).where(SystemConfig.key == key).limit(1)
|
||||
)
|
||||
if not existing.scalar_one_or_none():
|
||||
existing_config = existing.scalar_one_or_none()
|
||||
if not existing_config:
|
||||
db.add(
|
||||
SystemConfig(
|
||||
id=generate_id(), key=key, value=value, description=desc
|
||||
)
|
||||
)
|
||||
elif not existing_config.description and desc:
|
||||
# Update description if not set
|
||||
existing_config.description = desc
|
||||
db.add(existing_config)
|
||||
|
||||
# Seed video engine
|
||||
existing_engine = await db.execute(
|
||||
|
||||
Reference in New Issue
Block a user