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 #