diff --git a/wwwroot/index.ui b/wwwroot/index.ui index 8fefaf82..c9d99c15 100644 --- a/wwwroot/index.ui +++ b/wwwroot/index.ui @@ -1,6 +1,5 @@ {% set userorgid = get_userorgid() %} -{% set env = request._run_ns %} -{% set sor = env.get_sor('sage') %} +{% set sor = db.sqlorContext() %} {% set org = sor.execute_sql('SELECT orgname, iconid FROM organization WHERE id = ${orgid}$', {'orgid': userorgid}).first() %} {% set orgname = org.orgname if org and org.orgname else 'OpenComputing' %} {% set icon = org.iconid if org and org.iconid else 'imgs/ocai.svg' %}