def pull_boundaries(self, org): if org.get_config('is_global'): incoming_objects = Boundary.build_global_boundaries() else: client = self._get_client(org, 1) incoming_objects = client.get_boundaries() return sync_local_to_set(org, BoundarySyncer(), incoming_objects)
def pull_boundaries(self, org): if org.get_config("common.is_global"): incoming_objects = Boundary.build_global_boundaries() else: client = self._get_client(org, 2) incoming_objects = client.get_boundaries(geometry=True).all() return sync_local_to_set(org, BoundarySyncer(backend=self.backend), incoming_objects)
def pull_boundaries(self, org): if org.get_config('is_global'): incoming_objects = Boundary.build_global_boundaries() else: client = self._get_client(org, 1) incoming_objects = client.get_boundaries() return sync_local_to_set(org, BoundarySyncer(), incoming_objects)
def pull_boundaries(self, org): if org.get_config('common.is_global'): incoming_objects = Boundary.build_global_boundaries() else: client = self._get_client(org, 2) incoming_objects = client.get_boundaries(geometry=True).all() return sync_local_to_set(org, BoundarySyncer(backend=self.backend), incoming_objects)