10 lines
397 B
Plaintext
10 lines
397 B
Plaintext
result = [{'value': '', 'text': '全部'}]
|
|
try:
|
|
async with get_sor_context(request._run_ns, 'appbase') as sor:
|
|
rows = await sor.sqlExe(
|
|
"select k as value, v as text from appcodes_kv where parentid='script_status' order by k", {})
|
|
result = [{'value': '', 'text': '全部'}] + list(rows)
|
|
except Exception as e:
|
|
debug('get_search_status error: %s' % e)
|
|
return result
|