Skip to content

Commit

Permalink
🐛 FIX: Now takes into account template files for all lang.
Browse files Browse the repository at this point in the history
  • Loading branch information
simonsejse committed Oct 8, 2024
1 parent 33f04ad commit 7a51d2a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/update_readme.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,10 +83,10 @@ def format(self, language_counts):

# Add each language count to the table
for language, count in language_counts.items():
markdown += f"| {language} | {count} |\n"
markdown += f"| {language} | {count - 1} |\n"

# Add total count row
markdown += f"| **Total** | **{total_count}** |\n"
markdown += f"| **Total** | **{total_count - len(language_counts)}** |\n"

return markdown

Expand Down Expand Up @@ -128,5 +128,5 @@ def update_readme(self, directory):
file_counter = FileCounter(LANGUAGES)
md_formatter = MarkdownFormatter()
readme_updater = ReadmeUpdater(readme_path, md_formatter, file_counter)

readme_updater.update_readme(repo_directory)

0 comments on commit 7a51d2a

Please sign in to comment.