From 40af4d49e0e1b7d171bed4ec81a4b9bb57f3095e Mon Sep 17 00:00:00 2001 From: Jon Bergli Heier Date: Thu, 28 Jan 2016 21:02:35 +0100 Subject: tracking: postnord: Use displayName instead of name for location. --- modules/tracking.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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: -- cgit v1.2.3