fix minor bug in readme generation

This commit is contained in:
Bin Yang
2021-04-06 19:36:17 -04:00
parent 855be75c33
commit 491da0132b
2 changed files with 10 additions and 10 deletions
+2 -2
View File
@@ -69,9 +69,9 @@ def generate_wiki_per_category(output_path, update_readme: bool = True):
with open(os.path.join(PROJECT_ROOT_DIR, 'README.md'), 'w') as f:
table_str = formatted_df.iloc[:10].to_markdown(index=False)
new_str = "<!-- [PLACEHOLDER_START:{clean_category_name}] --> \n"
new_str = f"<!-- [PLACEHOLDER_START:{clean_category_name}] --> \n"
new_str += table_str
new_str += "<!-- [PLACEHOLDER_END:{clean_category_name}] --> \n"
new_str += f"<!-- [PLACEHOLDER_END:{clean_category_name}] --> \n"
search_start = re.escape('<!-- [PLACEHOLDER_START:{}] -->'.format(clean_category_name))
search_end = re.escape('<!-- [PLACEHOLDER_END:{}] -->'.format(clean_category_name))