From 7a51d2a618b418eaea997992092ce8f00fb56edb Mon Sep 17 00:00:00 2001 From: Simon Date: Wed, 9 Oct 2024 01:57:41 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20FIX:=20Now=20takes=20into=20acco?= =?UTF-8?q?unt=20template=20files=20for=20all=20lang.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/update_readme.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/update_readme.py b/.github/workflows/update_readme.py index 67ccf96..a384341 100644 --- a/.github/workflows/update_readme.py +++ b/.github/workflows/update_readme.py @@ -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 @@ -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)