changed the wiki file names

This commit is contained in:
Bin Yang
2021-04-02 15:21:32 -04:00
parent 800be7b179
commit 44ddc41d8e
17 changed files with 3 additions and 197 deletions
+3 -1
View File
@@ -47,9 +47,11 @@ def generate_wiki_per_category(output_path):
formatted_df['repo_status'] = formatted_df['repo_status'].apply(lambda x: get_wiki_status_color(x))
formatted_df['rating'] = formatted_df['rating'].apply(lambda x: get_wiki_rating(x))
output_path_full = os.path.join(output_path, '{}.md'.format(category))
clean_category_name = category.lower().replace(' ', '_')
output_path_full = os.path.join(output_path, '{}.md'.format(clean_category_name))
with open(output_path_full, 'w') as f:
f.write(formatted_df.to_markdown(index=False))
print('wiki generated in [{}]'.format(output_path_full))
if __name__ == '__main__':