From 4d4e37803153c84055407f4d565bfdb3d86604b8 Mon Sep 17 00:00:00 2001 From: Trent Palmer Date: Mon, 29 Nov 2021 18:07:29 -0800 Subject: [PATCH] update get_corrected_url() and get_corrected_theme_name() in rank_hugo_themes.py --- rank_hugo_themes.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/rank_hugo_themes.py b/rank_hugo_themes.py index aae1992..3888ad1 100755 --- a/rank_hugo_themes.py +++ b/rank_hugo_themes.py @@ -181,6 +181,8 @@ def parse_gitlab_hugo_themes_list(): def get_corrected_url(x): if 'neofeed-theme' in x: return x.rstrip('/v2') + elif 'docuapi' in x: + return x.rstrip('/v2') else: return x @@ -224,6 +226,8 @@ def get_gitlab_project_ids(): def get_corrected_theme_name(x): if 'neofeed-theme' in x: return x.rstrip('/v2') + elif 'docuapi' in x: + return x.rstrip('/v2') else: return x