Fix index calculation

This commit is contained in:
Chime Ogbuji 2024-11-03 20:36:55 -05:00
parent 24f40c3b8d
commit 78b24a2375

View File

@ -94,7 +94,7 @@ class CompletionsDatasetCollection:
while True: while True:
try: try:
if (curr_idx + 1) < len(item): if (curr_idx + 1) <= len(item):
return item[curr_idx] return item[curr_idx]
else: else:
curr_idx -= len(item) curr_idx -= len(item)