From 6cb19e6879aff896e95160de30b5593cca8fcbbf Mon Sep 17 00:00:00 2001 From: Cyrille LOUARN Date: Fri, 9 Feb 2024 16:44:32 +0100 Subject: [PATCH] removed unused and useless 'comments' in sort_dict() --- src/var/lib/tyto/program/tools.py | 17 +---------------- 1 file changed, 1 insertion(+), 16 deletions(-) diff --git a/src/var/lib/tyto/program/tools.py b/src/var/lib/tyto/program/tools.py index 48f11e9..f1868a3 100644 --- a/src/var/lib/tyto/program/tools.py +++ b/src/var/lib/tyto/program/tools.py @@ -215,25 +215,10 @@ def copy_template_dir(process): # Return new sorted dict # #----------------------------------------------------# def sort_dict(d): - set_dict = {} - sorted_items = sorted(d.values(), key=lambda x: (x[0], d), reverse=True) - - """ - print(sorted_items) - for item in sorted_items: - print(item) - """ - - """ - for nbr in d: - set_dict[d[nbr][0]] = d[nbr] - - list_dict = list(set_dict) - return(set_dict, sorted(list_dict, reverse=True)) - """ return sorted_items + #============================# # With "all" in command line # # Search for all .tyto files #