fix
This commit is contained in:
@@ -29,8 +29,7 @@ class Command(BaseCommand):
|
|||||||
for page in range(1,6):
|
for page in range(1,6):
|
||||||
data = get_data(page)
|
data = get_data(page)
|
||||||
for data in data['data']['data']:
|
for data in data['data']['data']:
|
||||||
Party.objects.update(
|
Party.objects.filter(number=data['id']).update(
|
||||||
number=data["id"],
|
|
||||||
payment_percentage=data["payment_percent"],
|
payment_percentage=data["payment_percent"],
|
||||||
process=data["percent"],
|
process=data["percent"],
|
||||||
)
|
)
|
||||||
|
|||||||
Reference in New Issue
Block a user