From 8184b13d9f4b3338a76edbed20ad4682f406f974 Mon Sep 17 00:00:00 2001 From: behruz-dev Date: Wed, 29 Oct 2025 16:28:16 +0500 Subject: [PATCH] fix --- core/apps/orders/management/commands/import_orders.py | 5 +---- core/apps/orders/management/commands/import_party.py | 4 +--- 2 files changed, 2 insertions(+), 7 deletions(-) diff --git a/core/apps/orders/management/commands/import_orders.py b/core/apps/orders/management/commands/import_orders.py index a22a2c3..12836fb 100644 --- a/core/apps/orders/management/commands/import_orders.py +++ b/core/apps/orders/management/commands/import_orders.py @@ -20,7 +20,6 @@ class Command(BaseCommand): with open(file_path, 'r', encoding='utf-8') as f: data = json.load(f) - statuses = set() for item in data['data']['data']: product_name = item['product']['name']['uz'] @@ -55,8 +54,6 @@ class Command(BaseCommand): created_at=created_at, date=delivery_date ) - statuses.add(item['status'].upper()) # break - self.stdout.write(self.style.SUCCESS("Orders imported successfully ✅")) - self.stdout.write(f"Statuslar: {statuses}") \ No newline at end of file + self.stdout.write(self.style.SUCCESS("Orders imported successfully ✅")) \ No newline at end of file diff --git a/core/apps/orders/management/commands/import_party.py b/core/apps/orders/management/commands/import_party.py index fecfc65..8865a72 100644 --- a/core/apps/orders/management/commands/import_party.py +++ b/core/apps/orders/management/commands/import_party.py @@ -63,7 +63,6 @@ class Command(BaseCommand): "process": data["percent"], }, ) - statuses.add(data["status"].upper()) orders = [] total_price = 0 paid_amount = 0 @@ -116,5 +115,4 @@ class Command(BaseCommand): "payment_amount": must_pay_amount, }, ) - self.stdout.write("Parties added") - self.stdout.write(f"Statuslar: {statuses}") \ No newline at end of file + self.stdout.write("Parties added") \ No newline at end of file