mirror of
https://github.com/TrentSPalmer/hugo_themes_report.git
synced 2024-12-04 16:41:31 -08:00
update get_corrected_url() and get_corrected_theme_name() in rank_hugo_themes.py
This commit is contained in:
parent
bdfef627ac
commit
4d4e378031
@ -181,6 +181,8 @@ def parse_gitlab_hugo_themes_list():
|
|||||||
def get_corrected_url(x):
|
def get_corrected_url(x):
|
||||||
if 'neofeed-theme' in x:
|
if 'neofeed-theme' in x:
|
||||||
return x.rstrip('/v2')
|
return x.rstrip('/v2')
|
||||||
|
elif 'docuapi' in x:
|
||||||
|
return x.rstrip('/v2')
|
||||||
else:
|
else:
|
||||||
return x
|
return x
|
||||||
|
|
||||||
@ -224,6 +226,8 @@ def get_gitlab_project_ids():
|
|||||||
def get_corrected_theme_name(x):
|
def get_corrected_theme_name(x):
|
||||||
if 'neofeed-theme' in x:
|
if 'neofeed-theme' in x:
|
||||||
return x.rstrip('/v2')
|
return x.rstrip('/v2')
|
||||||
|
elif 'docuapi' in x:
|
||||||
|
return x.rstrip('/v2')
|
||||||
else:
|
else:
|
||||||
return x
|
return x
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user