diff --git a/config.example.py b/config.example.py index 8d1ffabb0..1de87e505 100644 --- a/config.example.py +++ b/config.example.py @@ -178,6 +178,8 @@ # allow displaying the live location of workers on the map MAP_WORKERS = True +# show details like IV and Moves in Map +MAP_SHOW_DETAILS = True # filter these Pokemon from the map to reduce traffic and browser load #MAP_FILTER_IDS = [161, 165, 16, 19, 167] diff --git a/monocle/sanitized.py b/monocle/sanitized.py index 9f3bb6ebc..99895ee12 100644 --- a/monocle/sanitized.py +++ b/monocle/sanitized.py @@ -71,6 +71,7 @@ 'MAP_FILTER_IDS': sequence, 'MAP_PROVIDER_ATTRIBUTION': str, 'MAP_PROVIDER_URL': str, + 'MAP_SHOW_DETAILS': bool, 'MAP_START': sequence, 'MAP_WORKERS': bool, 'MAX_CAPTCHAS': int, @@ -176,6 +177,7 @@ 'MAP_FILTER_IDS': None, 'MAP_PROVIDER_URL': '//{s}.tile.openstreetmap.org/{z}/{x}/{y}.png', 'MAP_PROVIDER_ATTRIBUTION': '© OpenStreetMap contributors', + 'MAP_SHOW_DETAILS': True, 'MAP_WORKERS': True, 'MAX_CAPTCHAS': 0, 'MAX_RETRIES': 3, diff --git a/monocle/web_utils.py b/monocle/web_utils.py index 684b548d2..a292f6692 100644 --- a/monocle/web_utils.py +++ b/monocle/web_utils.py @@ -96,7 +96,7 @@ def sighting_to_marker(pokemon, names=POKEMON, moves=MOVES, damage=DAMAGE): 'expires_at': pokemon.expire_timestamp, } move1 = pokemon.move_1 - if pokemon.move_1: + if conf.MAP_SHOW_DETAILS and move1: move2 = pokemon.move_2 marker['atk'] = pokemon.atk_iv marker['def'] = pokemon.def_iv