diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 17f769e4d..b4e92995b 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -53,7 +53,7 @@ repos: args: - "--fix" - repo: https://github.com/psf/black - rev: 22.6b0 + rev: 24.1.1 hooks: - id: black - language_version: python3.8 \ No newline at end of file + language_version: python3.10 diff --git a/scripts/sort_contibutors/main.py b/scripts/sort_contibutors/main.py index 7fedbf378..223308c13 100644 --- a/scripts/sort_contibutors/main.py +++ b/scripts/sort_contibutors/main.py @@ -176,6 +176,7 @@ def merge_users(l: list) -> list: ranking = dict() for a in l: + if a["username"] in ranking: ranking[a["username"]] += a["ranking"] else: @@ -221,6 +222,7 @@ def get_contibutors_list(token: str) -> list: token = os.getenv("USER_TOKEN") if token is not None: + contributors = [ {"username": "f3rn0s", "name": "f3rn0s"}, {"username": "szh", "name": "Shlomo Zalman Heigh"},