From 44dab90003493c75389bd0b614018874c6a671d0 Mon Sep 17 00:00:00 2001 From: Jon Bergli Heier Date: Thu, 13 Jun 2013 23:03:50 +0200 Subject: tracking: Added scanDetails to fedex status. --- modules/tracking.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'modules') diff --git a/modules/tracking.py b/modules/tracking.py index 20b6ae5..a3b7f25 100644 --- a/modules/tracking.py +++ b/modules/tracking.py @@ -188,6 +188,8 @@ class FedexModule(TrackingModule): tz = pytz.timezone('Etc/GMT' + ('+' if lastevent['gmtOffset'][0] == '-' else '-') + str(int(lastevent['gmtOffset'][1:3]))) date = tz.localize(date).astimezone(pytz.timezone(config.get(cfg_section, 'local_timezone'))).replace(tzinfo = None) status = lastevent['status'].encode('utf-8') + if lastevent['scanDetails']: + status += ' - %s' % lastevent['scanDetails'].encode('utf-8') if lastevent['scanLocation']: status += ' (%s)' % lastevent['scanLocation'].encode('utf-8') results.append(TrackingResult(code, date, status, lastevent['isDelivered'])) -- cgit v1.2.3