diff options
Diffstat (limited to 'modules')
-rw-r--r-- | modules/tracking.py | 2 |
1 files changed, 2 insertions, 0 deletions
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'])) |