11 lines
296 B
Plaintext
11 lines
296 B
Plaintext
sql = """select id, tv_name as title, url, logo_url from iptvchannels"""
|
|
ns = {k:v for k,v in params_kw.items() }
|
|
ns['sort'] = 'title'
|
|
print(f'{ns=}')
|
|
db = DBPools()
|
|
async with db.sqlorContext('iptvdb') as sor:
|
|
d = await sor.sqlPaging(sql, ns)
|
|
print(f'get {len(d["rows"])} records')
|
|
return d
|
|
|