14 lines
285 B
Plaintext
14 lines
285 B
Plaintext
debug(f'report_playing.dspy:{params_kw=}')
|
|
|
|
db = DBPools()
|
|
async with db.sqlorContext('iptvdb') as sor:
|
|
ns = {
|
|
"id":uuid(),
|
|
"deviceid":params_kw.deviceid,
|
|
"playtime":timestampstr(),
|
|
"channelid":params_kw.channelid
|
|
}
|
|
await sor.C('playhistory',ns)
|
|
return "OK"
|
|
return "Error"
|