change alot of things
This commit is contained in:
@@ -15,13 +15,7 @@ token = "eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwczovL2JhY2tlbmQuYX
|
||||
|
||||
headers = {"Authorization": f"Bearer {token}"}
|
||||
|
||||
# def get_data(page):
|
||||
# url = f"https://backend.app.uyqur.uz/main/supply/order-view?size=1000&page={page}"
|
||||
# response = requests.get(url, headers=headers)
|
||||
|
||||
# if response.status_code == 200:
|
||||
# return response.json()
|
||||
# print(response.json())
|
||||
|
||||
|
||||
class Command(BaseCommand):
|
||||
@@ -60,7 +54,7 @@ class Command(BaseCommand):
|
||||
if parse_date(data["payment_date"])
|
||||
else parse_date(data["ordered_date"])
|
||||
),
|
||||
"status": statuses.get(data["status"].lower()),
|
||||
"status": statuses.get(data["status"].lower()) or 'NEW',
|
||||
"payment_percentage": data["payment_percent"],
|
||||
"process": data["percent"],
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user