feat: cards, attributes and modules

This commit is contained in:
2025-02-19 14:46:31 +04:00
parent a509a3a586
commit 1af78ce08a
61 changed files with 3212 additions and 2795 deletions

View File

@@ -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}