30 lines
591 B
Plaintext
30 lines
591 B
Plaintext
sql = "update iptvchannels set del_flg='1' where id=${id}$"
|
|
ns = params_kw.copy()
|
|
db=DBPools()
|
|
async with db.sqlorContext('iptvdb') as sor:
|
|
recs = await sor.sqlPaging(sql, ns)
|
|
return {
|
|
"widgettype":"Message",
|
|
"options":{
|
|
"title":"Channel deleted",
|
|
"message":f"{ns['id']=} channel deleted",
|
|
"timeout':2,
|
|
"archor":"rt",
|
|
"auto_open":True,
|
|
"auto_dismiss":True
|
|
}
|
|
}
|
|
return {
|
|
"widgettype":"Error",
|
|
"options":{
|
|
"title":"Delete failed",
|
|
"message":"Delete channel[id={ns['id']}] error",
|
|
"timeout":2,
|
|
"archor":"rt",
|
|
"auto_open":True,
|
|
"auto_dismiss":True
|
|
}
|
|
}
|
|
|
|
|