File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed
Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change 1111class BackRef (BaseModel ):
1212 plain_text : str
1313 block_id : str
14- begin_idx : int
14+ start_idx : int
1515 end_idx : int
1616
1717
@@ -44,15 +44,15 @@ def extract_text_with_backref_from_page(
4444 title_text += rich_text .plain_text
4545
4646 if title_text :
47- begin_idx = len (concat_text )
47+ start_idx = len (concat_text )
4848 concat_text += title_text
4949 end_idx = len (concat_text )
5050 # Add a backref for the page title using the page's ID
5151 backrefs .append (
5252 BackRef (
5353 plain_text = title_text ,
5454 block_id = page .id ,
55- begin_idx = begin_idx ,
55+ start_idx = start_idx ,
5656 end_idx = end_idx ,
5757 )
5858 )
@@ -65,15 +65,15 @@ def extract_text_with_backref_from_page(
6565 # Add all blocks to the concatenated text with their respective backrefs
6666 for block_id , block_text in blocks_with_text :
6767 if block_text :
68- begin_idx = len (concat_text )
68+ start_idx = len (concat_text )
6969 concat_text += block_text
7070 end_idx = len (concat_text )
7171
7272 backrefs .append (
7373 BackRef (
7474 plain_text = block_text ,
7575 block_id = block_id ,
76- begin_idx = begin_idx ,
76+ start_idx = start_idx ,
7777 end_idx = end_idx ,
7878 )
7979 )
You can’t perform that action at this time.
0 commit comments