From e7816256e881c4d12f077a5fd9225140a3792530 Mon Sep 17 00:00:00 2001 From: yumoqing Date: Fri, 29 Aug 2025 23:36:30 +0800 Subject: [PATCH] bugfix --- sqlor/filter.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/sqlor/filter.py b/sqlor/filter.py index 1bbd827..f82ea3c 100755 --- a/sqlor/filter.py +++ b/sqlor/filter.py @@ -32,6 +32,7 @@ try: import ujson as json except: import json +from appPublic.log import debug class DBFilter(object): operators = [ @@ -150,7 +151,7 @@ def default_filterjson(fields: list, ns: dict): 'op':'=', 'var':k } for k in ns.keys() if k in fields ] - print(f'default_filterjson():{c=}') + debug(f'default_filterjson():{c=}') if len(c) < 1: return None if len(c) < 2: @@ -175,6 +176,6 @@ if __name__ == '__main__': } dbf = DBFilter(fj) - print(fj) - print(dbf.gen({'name':'joe'})) - print(f'{dbf.consts=}') + debug(fj) + debug(dbf.gen({'name':'joe'})) + debug(f'{dbf.consts=}')