From d56fd30cfd7e4c28ab45f794b11361eba6ef2e28 Mon Sep 17 00:00:00 2001 From: Valentin Porchet Date: Wed, 14 Feb 2024 23:15:44 +0100 Subject: [PATCH] fix: fixed support for champion rank (ultimate) (#95) --- 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 616183d..2debb9d 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 399607d..842f6be 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 f3e5850..b1dedf0 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, ), ], )