fix: prepend 全部 option to get_search results
This commit is contained in:
parent
134bd1ca68
commit
186f64d544
@ -6,7 +6,7 @@ try:
|
|||||||
"select id as value, orgname as text from organization order by orgname",
|
"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:
|
except Exception as e:
|
||||||
debug(f'get_search_providerid error: {e}')
|
debug(f'get_search_providerid error: {e}')
|
||||||
|
|
||||||
|
|||||||
@ -6,7 +6,7 @@ try:
|
|||||||
"select id as value, name as text from upapp order by name",
|
"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:
|
except Exception as e:
|
||||||
debug(f'get_search_upappid error: {e}')
|
debug(f'get_search_upappid error: {e}')
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user