Removed has docs filter

pull/3/head
Davide Bongiovanni 6 years ago
parent b3aad9a1ca
commit c568635f60

@ -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 = []

@ -27,7 +27,6 @@
<input type="checkbox" class="checkbox" id="location"></input><label class="toggle-btn" for="location">Locations<br/><i class="fa fa-map" style="font-size:28pt"></i></label>
<input type="checkbox" class="checkbox" id="partno" checked></input><label class="toggle-btn" for="partno">Part Number<br/><i class="fa fa-hashtag" style="font-size:28pt"></i></label>
<input type="checkbox" class="checkbox" id="description" checked></input><label class="toggle-btn" for="description">Description<br/><i class="fa fa-edit" style="font-size:28pt"></i></label>
<input type="checkbox" class="checkbox" id="has-docs"></input><label class="toggle-btn" for="has-docs">Has docs<br/><i class="fa fa-paperclip" style="font-size:28pt"></i></label>
</div>
</div>
<table id="results">

Loading…
Cancel
Save