18 lines
498 B
Plaintext
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
|
|
|