From d7cdd8c7eaa00333a8b7644c9d6fab502843c579 Mon Sep 17 00:00:00 2001 From: Bwz3r <68409068+bwz3rbot@users.noreply.github.com> Date: Mon, 17 Nov 2025 13:30:38 -0700 Subject: [PATCH] Update helpers.py up-to-date region mapping as of 2025-11-17 --- src/riotwatcher/_apis/helpers.py | 27 +++++++++++++++++---------- 1 file changed, 17 insertions(+), 10 deletions(-) diff --git a/src/riotwatcher/_apis/helpers.py b/src/riotwatcher/_apis/helpers.py index 274a99b..3fef587 100644 --- a/src/riotwatcher/_apis/helpers.py +++ b/src/riotwatcher/_apis/helpers.py @@ -4,22 +4,29 @@ def remap_region_to_platform(argument_pos: int, argument_name="region"): def _remap_region_to_platform(api_call): remap = { + + # Americas + "na1": "americas", "br1": "americas", "la1": "americas", "la2": "americas", - "na1": "americas", + + # Asia + "kr": "asia", + "jp1": "asia", + + # Europe + "eun1": "europe", + "euw1": "europe", + "ru": "europe", + "tr1": "europe", + "me1": "europe", + + # Sea "oc1": "sea", - "ph2": "sea", "sg2": "sea", - "th2": "sea", "tw2": "sea", - "vn2": "sea", - "eun1": "europe", - "euw1": "europe", - "ru": "europe", - "tr1": "europe", - "jp1": "asia", - "kr": "asia", + "vn2": "sea" } @wraps(api_call)