Merge pull request #26284 from marination/order-by-weightage-for-web-items

fix: Order Items by weightage in the web items query
This commit is contained in:
Marica 2021-07-06 13:20:08 +05:30 committed by GitHub
commit dfe11aca6a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -71,7 +71,8 @@ class ProductQuery:
],
or_filters=self.or_filters,
start=start,
limit=self.page_length
limit=self.page_length,
order_by="weightage desc"
)
items_dict = {item.name: item for item in items}
@ -86,7 +87,8 @@ class ProductQuery:
filters=self.filters,
or_filters=self.or_filters,
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