@@ -335,12 +335,12 @@ def update_readme(
335335 readme_path = path_join (paths ["data" ], args .quarter , "README.md" )
336336
337337 # Define section markers for each data source
338- section_start_line = f"<!-- section start { section_file } -->\n "
339- section_end_line = f"<!-- section end { section_file } -->\n "
338+ section_start_line = f"<!-- SECTION start { section_file } -->\n "
339+ section_end_line = f"<!-- SECTION end { section_file } -->\n "
340340
341341 # Define entry markers for each plot (optional) and description
342- entry_start_line = f"<!-- entry start { entry_title } -->\n "
343- entry_end_line = f"<!-- entry end { entry_title } -->\n "
342+ entry_start_line = f"<!-- { section_file } entry start { entry_title } -->\n "
343+ entry_end_line = f"<!-- { section_file } entry end { entry_title } -->\n "
344344
345345 if os .path .exists (readme_path ):
346346 with open (readme_path , "r" , encoding = "utf-8" ) as f :
@@ -365,7 +365,7 @@ def update_readme(
365365 sections_before = ordered_sections [:current_postion ]
366366 # we find the last existing section that comes before this section
367367 for prev_section_title in reversed (sections_before ):
368- prev_end_line = f"<!-- section end { prev_section_title } -->\n "
368+ prev_end_line = f"<!-- SECTION end { prev_section_title } -->\n "
369369 if prev_end_line in lines :
370370 insert_index = lines .index (prev_end_line ) + 1
371371 break
0 commit comments