We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 599d2ce + 85f17f9 commit 4b4b20fCopy full SHA for 4b4b20f
pageindex/page_index.py
@@ -807,9 +807,9 @@ async def process_and_check_item(incorrect_item):
807
page_contents=[]
808
for page_index in range(prev_correct, next_correct+1):
809
# Add bounds checking to prevent IndexError
810
- list_index = page_index - start_index
811
- if list_index >= 0 and list_index < len(page_list):
812
- page_text = f"<physical_index_{page_index}>\n{page_list[list_index][0]}\n<physical_index_{page_index}>\n\n"
+ page_list_idx = page_index - start_index
+ if page_list_idx >= 0 and page_list_idx < len(page_list):
+ page_text = f"<physical_index_{page_index}>\n{page_list[page_list_idx][0]}\n<physical_index_{page_index}>\n\n"
813
page_contents.append(page_text)
814
else:
815
continue
0 commit comments