Skip to content

Commit b04e917

Browse files
committed
Catch and correct the Public Test Realm (XX) edge case.
1 parent b6ef88a commit b04e917

File tree

1 file changed

+12
-2
lines changed

1 file changed

+12
-2
lines changed

sc2reader/constants.py

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,14 @@
146146
'E55BB0': 'Pink'
147147
}
148148

149-
# TODO: We need a better mapping of subregions
149+
# TODO: Not sure if this is a complete mapping
150+
#
151+
# Assuming only 1 Public Test Realm subregion on the following basis:
152+
#
153+
# Q: Is there only one PTR server or there will be one for each region?
154+
# A: There's only one PTR server and it's located in North American.
155+
# There are no current plans to have multiple PTR servers.
156+
# Source: http://us.blizzard.com/support/article.xml?locale=en_US&articleId=36109
150157
REGIONS = {
151158
'us': {
152159
1: 'us',
@@ -159,5 +166,8 @@
159166
'kr': {
160167
1: 'kr',
161168
2: 'tw',
162-
}
169+
},
170+
'xx': {
171+
1: 'xx',
172+
},
163173
}

0 commit comments

Comments
 (0)