kboss/b/computing/cpc_update.dspy
2025-07-16 14:27:17 +08:00

18 lines
498 B
Plaintext

async def cpc_update(ns={}):
db = DBPools()
async with db.sqlorContext('kboss') as sor:
try:
await sor.U('cpc_list', ns)
return {
'status': True,
'msg': '算力中心更新成功'
}
except Exception as e:
return {
'status': False,
'msg': '算力中心更新错误, %s' % str(e)
}
ret = await cpc_update(params_kw)
return ret