Skip to content

Commit 0c77d32

Browse files
author
chenghao.zhang
committed
Some individual blocks may be discarded, and the continuous judgment logic is within 5 blocks
1 parent c211c38 commit 0c77d32

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

edgar/files/htmltools.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -352,6 +352,7 @@ def show_items(self, df_query: str, *columns):
352352
return result
353353

354354
def list_items(self):
355+
# TODO: remove Signature or add to pytest function
355356
return [item for item in self._chunked_data.Item.drop_duplicates().tolist() if item]
356357

357358
def _chunks_for(self, item_or_part: str, col: str = 'Item'):
@@ -394,7 +395,7 @@ def _chunks_mul_for(self, part: str, item: str):
394395
current_segment = [index_list[0]]
395396

396397
for i in range(1, len(index_list)):
397-
if index_list[i] == current_segment[-1] + 1:
398+
if index_list[i] <= current_segment[-1] + 5:
398399
current_segment.append(index_list[i])
399400
else:
400401
continuous_segments.append(current_segment)

0 commit comments

Comments
 (0)