summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
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