This commit is contained in:
behruz-dev
2025-10-29 16:28:16 +05:00
parent 82d85f8152
commit 8184b13d9f
2 changed files with 2 additions and 7 deletions

View File

@@ -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}")
self.stdout.write(self.style.SUCCESS("Orders imported successfully ✅"))

View File

@@ -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}")
self.stdout.write("Parties added")