Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
ssssarah committed Sep 3, 2024
1 parent 3c62de8 commit ec9e3da
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions kgforge/specializations/stores/nexus/batch_request_handler.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,9 @@ class BatchRequestHandler:
@staticmethod
def batch(iterable, n=BATCH_SIZE):

l = len(iterable)
for ndx in range(0, l, n):
yield iterable[ndx:min(ndx + n, l)]
length_v = len(iterable)
for ndx in range(0, length_v, n):
yield iterable[ndx:min(ndx + n, length_v)]

@staticmethod
def batch_request(
Expand Down Expand Up @@ -150,4 +150,3 @@ def create_tasks_and_sessions(
tasks.append(prepared_request)

return tasks, sessions

0 comments on commit ec9e3da

Please sign in to comment.