update get_corrected_url() and get_corrected_theme_name() in rank_hugo_themes.py

This commit is contained in:
Trent Palmer 2021-11-29 18:07:29 -08:00
parent bdfef627ac
commit 4d4e378031

View File

@ -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