import - service area & purchase policy in org linked ranchers
This commit is contained in:
@@ -3,7 +3,6 @@ from multiprocessing import cpu_count, Pool
|
||||
from django.core.management.base import BaseCommand
|
||||
from django.db import connection
|
||||
|
||||
from apps.herd.models import Rancher
|
||||
from .link_ranchers_parallel_worker import process_city
|
||||
|
||||
|
||||
@@ -18,7 +17,8 @@ class Command(BaseCommand):
|
||||
)
|
||||
|
||||
def handle(self, *args, **options):
|
||||
workers = options['workers']
|
||||
from apps.herd.models import Rancher
|
||||
workers = options['worker']
|
||||
|
||||
city_ids = (
|
||||
Rancher.objects.filter(city__isnull=False)
|
||||
|
||||
Reference in New Issue
Block a user