summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorJon Bergli Heier <snakebite@jvnv.net>2013-10-01 22:27:24 +0200
committerJon Bergli Heier <snakebite@jvnv.net>2013-10-01 22:27:24 +0200
commitfeba8c201c4730d790f486cf6d50f79cef95cfb1 (patch)
treee61893ad2517141ef8dacf56e26dcd5eeed50885 /modules
parentc73fe335108f00515a845fe52b06f2e244892907 (diff)
tracking: Use consignment instead of packages when listing URLs.
Diffstat (limited to 'modules')
-rw-r--r--modules/tracking.py5
1 files changed, 2 insertions, 3 deletions
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: