fix: cockpit_context.dspy 加 json import + dbname
This commit is contained in:
parent
8d158dcc86
commit
d33889c4ae
@ -1,5 +1,7 @@
|
||||
# cockpit_context.dspy — 返回当前上下文(项目/迭代),供前端 context_bar 显示
|
||||
|
||||
import json
|
||||
dbname = get_module_dbname('pipeline-sdlc')
|
||||
async with DBPools().sqlorContext(dbname) as sor:
|
||||
recs = await sor.sqlExe(
|
||||
"SELECT current_project_id, current_iteration_id FROM pipeline_agent_settings WHERE user_id=${uid}$",
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user