fix: prepend 全部 option to get_search results

This commit is contained in:
yumoqing 2026-06-04 18:52:10 +08:00
parent 134bd1ca68
commit 186f64d544
2 changed files with 2 additions and 2 deletions

View File

@ -6,7 +6,7 @@ try:
"select id as value, orgname as text from organization order by orgname",
{}
)
return orgs
return json.dumps([{'value': '', 'text': '全部'}] + list(orgs), ensure_ascii=False)
except Exception as e:
debug(f'get_search_providerid error: {e}')

View File

@ -6,7 +6,7 @@ try:
"select id as value, name as text from upapp order by name",
{}
)
return apps
return json.dumps([{'value': '', 'text': '全部'}] + list(apps), ensure_ascii=False)
except Exception as e:
debug(f'get_search_upappid error: {e}')