13 lines
288 B
Plaintext
13 lines
288 B
Plaintext
debug(f'report_failed.dspy:{params_kw=}')
|
|
db = DBPools()
|
|
async with db.sqlorContext('iptvdb') as sor:
|
|
ns = {
|
|
"id":uuid(),
|
|
"deviceid":params_kw.deviceid,
|
|
"channelid":params_kw.channelid,
|
|
"reporttime":timestampstr()
|
|
}
|
|
await sor.C('channelfailed', ns)
|
|
return "OK"
|
|
return "Error"
|