Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added new line after _START_COMMENT to process badges inside of html tags correctly #530

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 4 additions & 5 deletions sources/manager_github.py
Original file line number Diff line number Diff line change
Expand Up @@ -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():
Expand Down Expand Up @@ -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:
Expand Down