From 09bf64378f06a9811e4e086916c6df53a116ceba Mon Sep 17 00:00:00 2001 From: yumoqing Date: Thu, 9 Jul 2026 12:02:54 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20index.ui=E7=94=A8db.sqlorContext()?= =?UTF-8?q?=E6=9B=BF=E4=BB=A3request.=5Frun=5Fns?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- wwwroot/index.ui | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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' %}