This commit is contained in:
2026-06-29 10:51:59 +08:00
parent 776e122adf
commit 39440f2ad4
5 changed files with 8 additions and 16 deletions
+2 -1
View File
@@ -1076,7 +1076,8 @@ async def list_system_configs(
admin: User = Depends(get_admin_user),
db: AsyncSession = Depends(get_db),
):
result = await db.execute(select(SystemConfig))
deprecated_keys = {"user_agreement_url", "privacy_policy_url"}
result = await db.execute(select(SystemConfig).where(~SystemConfig.key.in_(deprecated_keys)))
return result.scalars().all()