From feba8c201c4730d790f486cf6d50f79cef95cfb1 Mon Sep 17 00:00:00 2001 From: Jon Bergli Heier Date: Tue, 1 Oct 2013 22:27:24 +0200 Subject: tracking: Use consignment instead of packages when listing URLs. --- modules/tracking.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'modules') diff --git a/modules/tracking.py b/modules/tracking.py index 3fd6638..6d41d37 100644 --- a/modules/tracking.py +++ b/modules/tracking.py @@ -423,9 +423,8 @@ class Module: consignments = consignments.filter(Consignment.nick == nick) results = [] for consignment in consignments: - for package in consignment.packages: - m = get_tracking_module('%s:%s' % (consignment.type, package.code)) - msg.append(m.get_url(package.code)) + m = get_tracking_module('%s:%s' % (consignment.type, consignment.code)) + msg.append(m.get_url(consignment.code)) if not len(msg): # Rreturn an error only if we got a code to filter with. if code: -- cgit v1.2.3