From 4d9ef066194cd4d2fb82928745c486abe01cff1a Mon Sep 17 00:00:00 2001 From: yumoqing Date: Fri, 2 Jun 2023 12:46:16 +0800 Subject: [PATCH] bugfi --- sqlor/sor.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/sqlor/sor.py b/sqlor/sor.py index c127b29..bffd425 100755 --- a/sqlor/sor.py +++ b/sqlor/sor.py @@ -187,8 +187,8 @@ class SQLor(object): return sql if page < 1: page = 1 - from_line = (page - 1) * rows + 1 - end_line = page * rows + 1 + from_line = (page - 1) * rows + end_line = page * rows psql = self.pagingSQLmodel() ns={ 'from_line':from_line, @@ -426,6 +426,7 @@ class SQLor(object): del cnt_desc['sql_file'] paging_desc['sql_string'] = self.pagingSQL(sql, paging_desc.get('paging'),NS) + print(f'{paging_desc=}') class Cnt: def __init__(self):