Skip to content

Commit 9bd9639

Browse files
rename
1 parent a50ffe9 commit 9bd9639

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

label_studio/io_storages/base_models.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -342,8 +342,8 @@ def _scan_and_create_links_v2(self):
342342
raise NotImplementedError
343343

344344
@classmethod
345-
def add_task(cls, project, maximum_annotations, max_inner_id, storage, link_params, link_class):
346-
link_kwargs = asdict(link_params)
345+
def add_task(cls, project, maximum_annotations, max_inner_id, storage, link_object, link_class):
346+
link_kwargs = asdict(link_object)
347347
data = link_kwargs.pop('task_data')
348348

349349
# predictions
@@ -438,7 +438,7 @@ def _scan_and_create_links(self, link_class):
438438

439439
logger.debug(f'{self}: found new key {key}')
440440
try:
441-
links_params = self.get_data(key)
441+
link_objects = self.get_data(key)
442442
except (UnicodeDecodeError, json.decoder.JSONDecodeError) as exc:
443443
logger.debug(exc, exc_info=True)
444444
raise ValueError(
@@ -448,17 +448,17 @@ def _scan_and_create_links(self, link_class):
448448
)
449449

450450
if not flag_set('fflag_feat_dia_2092_multitasks_per_storage_link'):
451-
links_params = links_params[:1]
451+
link_objects = link_objects[:1]
452452

453-
for link_params in links_params:
453+
for link_object in link_objects:
454454
# TODO: batch this loop body with add_task -> add_tasks in a single bulk write.
455455
# See DIA-2062 for prerequisites
456456
task = self.add_task(
457457
self.project,
458458
maximum_annotations,
459459
max_inner_id,
460460
self,
461-
link_params,
461+
link_object,
462462
link_class=link_class,
463463
)
464464
max_inner_id += 1

0 commit comments

Comments
 (0)