Skip to content

Commit

Permalink
parse string
Browse files Browse the repository at this point in the history
  • Loading branch information
cec authored and cec committed May 2, 2020
1 parent 72d8569 commit 9591190
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 3 deletions.
Empty file added .nosync
Empty file.
2 changes: 1 addition & 1 deletion mapadroid/data_manager/modules/device.py
Original file line number Diff line number Diff line change
Expand Up @@ -324,7 +324,7 @@ class Device(Resource):
"type": "option",
"require": False,
"values": [None, False, True],
"description": "Activate enhanced mode for this device",
"description": "Activate enhanced quest mode for this device",
"expected": bool
}
}
Expand Down
2 changes: 1 addition & 1 deletion mapadroid/data_manager/modules/devicepool.py
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,7 @@ class DevicePool(Resource):
"type": "option",
"require": False,
"values": [None, False, True],
"description": "Activate enhanced mode",
"description": "Activate enhanced quest mode",
"expected": bool
}
}
Expand Down
3 changes: 2 additions & 1 deletion mapadroid/utils/MappingManager.py
Original file line number Diff line number Diff line change
Expand Up @@ -425,7 +425,8 @@ def __get_latest_routemanagers(self) -> Optional[Dict[str, dict]]:
area.get("settings", {}).get("include_event_id", None)
)
logger.info("Initializing area {}", area["name"])
if mode not in ("iv_mitm", "idle") and area.get("route_calc_algorithm", "optimized") not in "routefree":
if mode not in ("iv_mitm", "idle") and str(area.get("route_calc_algorithm", "optimized"))\
not in "routefree":
coords = self.__fetch_coords(mode, geofence_helper,
coords_spawns_known=area.get("coords_spawns_known", False),
init=area.get("init", False),
Expand Down

0 comments on commit 9591190

Please sign in to comment.