diff --git a/parts/server.py b/parts/server.py index c3d5a30..a7937f8 100644 --- a/parts/server.py +++ b/parts/server.py @@ -53,7 +53,7 @@ def get_part_info(partID): def query(filter, query): query = '%' + query + '%' filter = int(filter) - s = 'select * from parts where ' + s = 'select p.id,partno,description,l.name as location_descriptor from parts as p inner join locations as l on p.location_id = l.id where ' if filter & (1 << 1) != 0: s += 'LOWER(partno) like LOWER(:name) or ' if filter & (1 << 4) != 0: