10 lines
389 B
Plaintext
10 lines
389 B
Plaintext
result = []
|
|
try:
|
|
async with get_sor_context(request._run_ns, 'pipeline') as sor:
|
|
rows = await sor.sqlExe("select id as project_id, name as project_id_text from sd_projects order by name", {})
|
|
result = list(rows)
|
|
return json.dumps(result, ensure_ascii=False)
|
|
except Exception as e:
|
|
debug(f'dropdown error: {e}')
|
|
return json.dumps(result, ensure_ascii=False)
|