update rank_hugo_themes.py remove gcushen

This commit is contained in:
Trent Palmer 2022-07-07 14:27:58 -07:00
parent a612659a3b
commit 66720672b9

View File

@ -101,10 +101,11 @@ def get_hugo_themes_list():
if response.status_code == 200: if response.status_code == 200:
lower_case_themes_list = [] lower_case_themes_list = []
for x in response.text.splitlines(): for x in response.text.splitlines():
if x[0:10] == "gitlab.com" or x[0:10] == "github.com": if "gcushen" not in x:
if x.lower() not in lower_case_themes_list: if x[0:10] == "gitlab.com" or x[0:10] == "github.com":
THEMESLIST.append(x) if x.lower() not in lower_case_themes_list:
lower_case_themes_list.append(x.lower()) THEMESLIST.append(x)
lower_case_themes_list.append(x.lower())
print(response.status_code, get_hugo_themes_list.__name__) print(response.status_code, get_hugo_themes_list.__name__)