diff options
author | Jon Bergli Heier <snakebite@jvnv.net> | 2013-10-01 22:27:24 +0200 |
---|---|---|
committer | Jon Bergli Heier <snakebite@jvnv.net> | 2013-10-01 22:27:24 +0200 |
commit | feba8c201c4730d790f486cf6d50f79cef95cfb1 (patch) | |
tree | e61893ad2517141ef8dacf56e26dcd5eeed50885 | |
parent | c73fe335108f00515a845fe52b06f2e244892907 (diff) |
tracking: Use consignment instead of packages when listing URLs.
-rw-r--r-- | modules/tracking.py | 5 |
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: |