summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJon Bergli Heier <snakebite@jvnv.net>2016-01-28 21:02:35 +0100
committerJon Bergli Heier <snakebite@jvnv.net>2016-01-28 21:02:35 +0100
commit40af4d49e0e1b7d171bed4ec81a4b9bb57f3095e (patch)
tree11c8983e12d3f217c67271b2baf31fb18539822f
parent9a78509afcab8ec5fc00d5239d01949df965b8b7 (diff)
tracking: postnord: Use displayName instead of name for location.
-rwxr-xr-xmodules/tracking.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/tracking.py b/modules/tracking.py
index 9696afe..b59bc05 100755
--- a/modules/tracking.py
+++ b/modules/tracking.py
@@ -239,7 +239,7 @@ class PostNordModule(TrackingModule):
event = lastevent['eventDescription']
location = lastevent.get('location')
if location:
- location = lastevent['location'].get('name') or lastevent['location'].get('city')
+ location = lastevent['location'].get('displayName') or lastevent['location'].get('city')
if location:
status = '%s (%s)' % (event, location)
else: