summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorJon Bergli Heier <snakebite@jvnv.net>2013-06-13 23:03:50 +0200
committerJon Bergli Heier <snakebite@jvnv.net>2013-06-13 23:03:50 +0200
commit44dab90003493c75389bd0b614018874c6a671d0 (patch)
treeba1bde6337364362474834e624838d5afbc9dcca /modules
parent0cc57aaf16f269262ea9aa27f97c932ab2c43ef9 (diff)
tracking: Added scanDetails to fedex status.
Diffstat (limited to 'modules')
-rw-r--r--modules/tracking.py2
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']))