From 2de5ef2366d7cba91291a350fa5fe3bba007dc24 Mon Sep 17 00:00:00 2001 From: Jon Bergli Heier Date: Tue, 19 Jul 2011 13:20:05 +0200 Subject: tracking: Fixed data usage in update_consignment(). --- modules/tracking.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'modules') 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 -- cgit v1.2.3