From 0a5c06dc8cfd8830ab227e288ff621efefd2f231 Mon Sep 17 00:00:00 2001 From: mmzeynalli Date: Thu, 3 Oct 2024 21:02:31 +0200 Subject: [PATCH] Added new line after _START_COMMENT to process badges inside of html tags correctly --- sources/manager_github.py | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/sources/manager_github.py b/sources/manager_github.py index 57cc80d0..496a4992 100644 --- a/sources/manager_github.py +++ b/sources/manager_github.py @@ -6,12 +6,11 @@ from shutil import copy, rmtree from string import ascii_letters -from git import Repo, Actor -from github import Github, AuthenticatedUser, Repository - +from git import Actor, Repo +from github import AuthenticatedUser, Github, Repository +from manager_debug import DebugManager as DBM from manager_environment import EnvironmentManager as EM from manager_file import FileManager as FM -from manager_debug import DebugManager as DBM def init_github_manager(): @@ -109,7 +108,7 @@ def update_readme(stats: str): with open(readme_path, "r") as readme_file: readme_contents = readme_file.read() - readme_stats = f"{GitHubManager._START_COMMENT}\n{stats}\n{GitHubManager._END_COMMENT}" + readme_stats = f"{GitHubManager._START_COMMENT}\n\n{stats}\n{GitHubManager._END_COMMENT}" new_readme = sub(GitHubManager._README_REGEX, readme_stats, readme_contents) with open(readme_path, "w") as readme_file: