From c568635f60aefe754d646aabd94bff34a1bfdcef Mon Sep 17 00:00:00 2001 From: Davide Bongiovanni Date: Tue, 13 Nov 2018 13:36:21 +0100 Subject: [PATCH] Removed has docs filter --- parts/server.py | 4 ---- parts/templates/partsearch.html | 1 - 2 files changed, 5 deletions(-) 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 @@ -