diff options
-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: |