feat: add support tickets and imrpove web app loading

This commit is contained in:
3252a8
2026-05-20 16:38:24 +03:00
parent 3b846f0d44
commit d8a1da1f13
78 changed files with 8990 additions and 168 deletions
+11
View File
@@ -37,6 +37,17 @@ async def get_all_overrides(session: AsyncSession) -> Dict[str, Any]:
return {row.key: _decode(row.value) for row in rows}
async def get_override_value(session: AsyncSession, key: str) -> Tuple[bool, Any]:
row = (
await session.execute(
select(AppSettingOverride).where(AppSettingOverride.key == key).limit(1)
)
).scalar_one_or_none()
if row is None:
return False, None
return True, _decode(row.value)
async def get_overrides_with_meta(session: AsyncSession) -> List[Dict[str, Any]]:
rows = (await session.execute(select(AppSettingOverride))).scalars().all()
items: List[Dict[str, Any]] = []