From a4fc2fd6b93bb515861c74289a1719d7d0ecdfae Mon Sep 17 00:00:00 2001 From: TeKrop Date: Wed, 14 Feb 2024 23:04:54 +0100 Subject: [PATCH] fix: fixed support for champion rank (ultimate) --- app/common/enums.py | 2 +- pyproject.toml | 2 +- tests/parsers/test_helpers.py | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/app/common/enums.py b/app/common/enums.py index 616183d5..2debb9d5 100644 --- a/app/common/enums.py +++ b/app/common/enums.py @@ -117,7 +117,7 @@ class CompetitiveDivision(StrEnum): DIAMOND = "diamond" MASTER = "master" GRANDMASTER = "grandmaster" - CHAMPION = "champion" + ULTIMATE = "ultimate" class Locale(StrEnum): diff --git a/pyproject.toml b/pyproject.toml index 399607d4..842f6be9 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "overfast-api" -version = "2.25.0" +version = "2.25.1" description = "Overwatch API giving data about heroes, maps, and players statistics." license = "MIT" authors = ["Valentin PORCHET "] diff --git a/tests/parsers/test_helpers.py b/tests/parsers/test_helpers.py index f3e58500..b1dedf04 100644 --- a/tests/parsers/test_helpers.py +++ b/tests/parsers/test_helpers.py @@ -74,8 +74,8 @@ def test_get_computed_stat_value(input_str: str, result: float | str): CompetitiveDivision.GRANDMASTER, ), ( - "https://static.playoverwatch.com/img/pages/career/icons/rank/ChampionTier-3-e55e61f68f.png", - CompetitiveDivision.CHAMPION, + "https://static.playoverwatch.com/img/pages/career/icons/rank/Rank_UltimateTier-99f8248b65.png", + CompetitiveDivision.ULTIMATE, ), ], )