diff options
author | Jon Bergli Heier <snakebite@jvnv.net> | 2016-01-28 21:02:35 +0100 |
---|---|---|
committer | Jon Bergli Heier <snakebite@jvnv.net> | 2016-01-28 21:02:35 +0100 |
commit | 40af4d49e0e1b7d171bed4ec81a4b9bb57f3095e (patch) | |
tree | 11c8983e12d3f217c67271b2baf31fb18539822f | |
parent | 9a78509afcab8ec5fc00d5239d01949df965b8b7 (diff) |
tracking: postnord: Use displayName instead of name for location.
-rwxr-xr-x | modules/tracking.py | 2 |
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: |