Merge branch 'feature/1-test-feature' into dev
This commit is contained in:
@@ -54,6 +54,7 @@ class FplApi:
|
|||||||
|
|
||||||
territoryArray = json_data["data"]["territory"]
|
territoryArray = json_data["data"]["territory"]
|
||||||
if len(territoryArray) == 0:
|
if len(territoryArray) == 0:
|
||||||
|
# returns main region by default in case no regions found
|
||||||
return FPL_MAINREGION
|
return FPL_MAINREGION
|
||||||
|
|
||||||
self._territory = territoryArray[0]
|
self._territory = territoryArray[0]
|
||||||
|
|||||||
Reference in New Issue
Block a user