Skip to content

Commit 4c992b0

Browse files
committed
rename iter
1 parent 43ad871 commit 4c992b0

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

synapseclient/extensions/curator/record_based_metadata_task.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -313,10 +313,10 @@ def project_id_from_entity_id(entity_id: str, synapse_client: Synapse) -> str:
313313

314314
# Get the project ID from the folder ID
315315
current_obj = get(entity_id, synapse_client=synapse_client)
316-
iter = 0
316+
iterations = 0
317317
while not isinstance(current_obj, Project):
318318
current_obj = get(current_obj.parent_id, synapse_client=synapse_client)
319-
iter += 1
320-
if iter > 1000:
319+
iterations += 1
320+
if iterations > 1000:
321321
raise ValueError("Could not find project ID in folder hierarchy")
322322
return current_obj.id

0 commit comments

Comments
 (0)