From 548e9cb9c73a3fe86a3b4dad02e6246a632f78a2 Mon Sep 17 00:00:00 2001 From: Lindsay Date: Tue, 1 Feb 2022 09:25:02 +0100 Subject: [PATCH] [IMP] Put self in _sort_key method so that it can easily be overridden outside --- shopfloor/actions/location_content_transfer_sorter.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/shopfloor/actions/location_content_transfer_sorter.py b/shopfloor/actions/location_content_transfer_sorter.py index 1ad4aa1f8b1..683bc737cb8 100644 --- a/shopfloor/actions/location_content_transfer_sorter.py +++ b/shopfloor/actions/location_content_transfer_sorter.py @@ -56,8 +56,7 @@ def package_levels(self): ) ) - @staticmethod - def _sort_key(content): + def _sort_key(self, content): # content can be either a move line, either a package # level return (