diff --git a/parts/server.py b/parts/server.py index 068803f..b1df0e0 100644 --- a/parts/server.py +++ b/parts/server.py @@ -151,11 +151,7 @@ def query(filter_dummy, query): s += 'LOWER(description) like LOWER(:kw'+ str(i) +') AND ' s = s[:-5] s += ') OR ' - if filter['n'] == 'true': - s = s[:-4] - s += "AND (datasheet='' IS NOT FALSE) IS FALSE OR " s = s[:-4] + ';' - print(s) s = text(s) r = db_engine.execute(s, kw_dict) l = [] diff --git a/parts/templates/partsearch.html b/parts/templates/partsearch.html index cd3801a..8342413 100644 --- a/parts/templates/partsearch.html +++ b/parts/templates/partsearch.html @@ -27,7 +27,6 @@ -