feat: cards, attributes and modules
This commit is contained in:
@@ -63,7 +63,7 @@ class ServiceExcelExporter:
|
||||
categories = {service.category for services in categories_dict.values() for service in services}
|
||||
|
||||
def category_sort_key(category):
|
||||
return category.deal_service_rank if service_type == ServiceType.DEAL_SERVICE else category.product_service_rank
|
||||
return category.card_service_rank if service_type == ServiceType.DEAL_SERVICE else category.product_service_rank
|
||||
|
||||
sorted_categories = sorted(categories, key=category_sort_key)
|
||||
sorted_categories_dict = {category.id: categories_dict[category.id] for category in sorted_categories}
|
||||
|
||||
Reference in New Issue
Block a user