From 5883ce8c82bea819800772e28a67c751d70c99fa Mon Sep 17 00:00:00 2001 From: yumoqing Date: Thu, 16 Oct 2025 11:42:49 +0800 Subject: [PATCH] bugfix --- wwwroot/api/newest_channels.dspy | 14 ++------------ wwwroot/index.ui | 8 -------- 2 files changed, 2 insertions(+), 20 deletions(-) diff --git a/wwwroot/api/newest_channels.dspy b/wwwroot/api/newest_channels.dspy index 70cba57..02939a5 100755 --- a/wwwroot/api/newest_channels.dspy +++ b/wwwroot/api/newest_channels.dspy @@ -2,23 +2,13 @@ sql = "select * from iptvchannels where del_flg='0'" ns = { } ns = params_kw.copy() -ns['sort'] = 'tv_name' -parts = [] -tv_name = params_kw.get('tv_name', None) -if tv_name: - tv_name = '%' + tv_name + '%' - parts.append(' tv_name like ${tv_name}$ ') - ns['tv_name'] = tv_name - -if len(parts) > 0: - sql += ' and ' + 'and'.join(parts) - -sql += ' order by download_date desc' +ns['sort'] = ['download_date desc','tv_name'] db=DBPools() if not params_kw.get('page'): ns['page'] = 1 ns['rows'] = 100 +debug(f'{sql=}') async with db.sqlorContext('iptvdb') as sor: recs = await sor.sqlPaging(sql, ns) return recs diff --git a/wwwroot/index.ui b/wwwroot/index.ui index 189a991..511e224 100644 --- a/wwwroot/index.ui +++ b/wwwroot/index.ui @@ -16,14 +16,6 @@ "widgettype":"Filler", "options":{}, "subwidgets":[ - { - "widgettype":"MdWidget", - "options":{ - "md_url":"{{entire_url('iptvsource.md')}}", - "css":"scroll", - "cheight":10 - } - }, { "widgettype":"urlwidget", "options":{