fix: index.ui用db.sqlorContext()替代request._run_ns
This commit is contained in:
parent
33aa4a63bb
commit
09bf64378f
@ -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' %}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user