From c77832da6db0454fa768aa25c2f629c302f5fea7 Mon Sep 17 00:00:00 2001 From: germann_e Date: Wed, 23 Aug 2023 09:23:00 +0200 Subject: [PATCH] FIX: sorting problem --- pmodules_tools/db_diff/check.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pmodules_tools/db_diff/check.py b/pmodules_tools/db_diff/check.py index ffbc8d79..897932a2 100644 --- a/pmodules_tools/db_diff/check.py +++ b/pmodules_tools/db_diff/check.py @@ -100,7 +100,8 @@ def db_check_diff(current_pmodule_state, Pmodules_db_path, Pmodules_states): " ".join(i.split()) for i in current_pmodule_state.splitlines() ) old_db = set(" ".join(i.split()) for i in old_pmodule_state.splitlines()) - all_module_list = list(current_db).sort(key = lambda row: (row[0])) + all_module_list = list(current_db) + all_module_list = sorted(all_module_list, key=lambda row: row[0]) # We have to check the differences between the pmodule states. if compare_states_sha(current_pmodule_state, old_pmodule_state, current_sha):