mirror of
https://github.com/firmai/financial-machine-learning.git
synced 2026-08-18 05:18:07 +00:00
fix minor bug in readme generation
This commit is contained in:
+2
-2
@@ -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))
|
||||
|
||||
Reference in New Issue
Block a user