summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorJon Bergli Heier <snakebite@jvnv.net>2011-07-19 13:20:05 +0200
committerJon Bergli Heier <snakebite@jvnv.net>2011-07-19 13:20:05 +0200
commit2de5ef2366d7cba91291a350fa5fe3bba007dc24 (patch)
tree77ac40af6f362a68c8fd6fcfb2d4fa14f7d6c67f /modules
parent4c789190c14713dc55c4d0be56a5fe461cd549c5 (diff)
tracking: Fixed data usage in update_consignment().
Diffstat (limited to 'modules')
-rw-r--r--modules/tracking.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/tracking.py b/modules/tracking.py
index 4e2a195..d4a3e10 100644
--- a/modules/tracking.py
+++ b/modules/tracking.py
@@ -380,7 +380,7 @@ class Module:
break
package = session.query(Package).filter(and_(Package.consignment_id == consignment.id, Package.code == data.code)).one()
- if package.last == None or data[1] > package.last:
+ if package.last == None or data.date > package.last:
code = data.code
last = data.date
desc = data.desc