From cf30c66d3078558be67d03d69262fe0864eac709 Mon Sep 17 00:00:00 2001 From: Harrison Date: Thu, 17 Oct 2024 10:56:02 +0100 Subject: [PATCH] Remove prints --- contributors/__init__.py | 2 +- contributors/markdown.py | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/contributors/__init__.py b/contributors/__init__.py index a8456e3..4367897 100644 --- a/contributors/__init__.py +++ b/contributors/__init__.py @@ -65,7 +65,7 @@ def main(): environment.link_to_profile, environment.show_organizations_list, ) - # TODO HCookie Fix to json + json_writer.write_to_json( filename="{environment.filename}.json", start_date=environment.start_date, diff --git a/contributors/markdown.py b/contributors/markdown.py index 49914e0..9c7d974 100644 --- a/contributors/markdown.py +++ b/contributors/markdown.py @@ -191,7 +191,9 @@ def get_contributor_table( contribution_count = collaborator.contribution_count if repository: commit_urls = collaborator.commit_url - print(repository, type(repository)) + + if not isinstance(repository, list): + repository = [repository] if organization or len(repository) > 1: # split the urls from the comma separated list and make them into markdown links commit_url_list = collaborator.commit_url.split(",")