From 08b44f20833466b322b8d4ad06334af4d051d8af Mon Sep 17 00:00:00 2001 From: Karl He Date: Thu, 21 Jul 2016 13:08:44 -0700 Subject: [PATCH] Fix map zoom level --- notifier.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/notifier.py b/notifier.py index 9d6237b1c6..95bb353d1b 100644 --- a/notifier.py +++ b/notifier.py @@ -32,13 +32,13 @@ def pokemon_found(pokemon): address = ",".join(location.address.split(",")[0:2]) # Locate pokemon on GMAPS - gMaps = "http://maps.google.com/maps?q={},{}&24z".format(str(pokemon["lat"]), str(pokemon["lng"])) + maps_link = "http://maps.google.com/maps?q={},{}&20z".format(str(pokemon["lat"]), str(pokemon["lng"])) # Get disappearance time disappear_time = str(datetime.fromtimestamp(pokemon["disappear_time"]).strftime("%I:%M%p").lstrip('0')) # Create notification - notification_text = "*{}* is here until *{}* at *{}* ({})".format(_str(pokemon["name"]), disappear_time, address, gMaps) + notification_text = "*{}* is here until *{}* at *{}* ({})".format(_str(pokemon["name"]), disappear_time, address, maps_link) # Post to Slack post_url = "https://slack.com/api/chat.postMessage"