Skip to content

Commit f3744fe

Browse files
authored
Merge pull request #189 from NumberPigeon/Observer-url
Feat: allow Observer.url
2 parents a68dc10 + f967828 commit f3744fe

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

sc2reader/objects.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,8 +135,11 @@ def __init__(self, sid, slot_data):
135135
toon_handle = self.toon_handle or "0-S2-0-0"
136136
parts = toon_handle.split("-")
137137

138+
#: The Battle.net region id the entity is registered to
139+
self.region_id = int(parts[0])
140+
138141
#: The Battle.net region the entity is registered to
139-
self.region = GATEWAY_LOOKUP[int(parts[0])]
142+
self.region = GATEWAY_LOOKUP[self.region_id]
140143

141144
#: The Battle.net subregion the entity is registered to
142145
self.subregion = int(parts[2])

0 commit comments

Comments
 (0)