fix: Order Items by weightage in the web items query

This commit is contained in:
marination 2021-07-01 17:20:24 +05:30
parent d8bc514226
commit 752f099e9d

View File

@ -71,7 +71,8 @@ class ProductQuery:
], ],
or_filters=self.or_filters, or_filters=self.or_filters,
start=start, start=start,
limit=self.page_length limit=self.page_length,
order_by="weightage desc"
) )
items_dict = {item.name: item for item in items} items_dict = {item.name: item for item in items}
@ -86,7 +87,8 @@ class ProductQuery:
filters=self.filters, filters=self.filters,
or_filters=self.or_filters, or_filters=self.or_filters,
start=start, start=start,
limit=self.page_length limit=self.page_length,
order_by="weightage desc"
) )
# Combine results having context of website item groups into item results # Combine results having context of website item groups into item results