From 7a83fa67e0bea3921e1086a7a5190571ce726df9 Mon Sep 17 00:00:00 2001 From: Maddcow <37763928+Maddcow@users.noreply.github.com> Date: Fri, 29 Jul 2022 23:03:10 -0400 Subject: [PATCH] Update plugin_updatechecker.py Just a quality of life change. Added a sorted option to the plugin list to show it in alphabetical order when displayed. --- src/plugin/plugin_updatechecker.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/plugin/plugin_updatechecker.py b/src/plugin/plugin_updatechecker.py index 9423791..92fe697 100644 --- a/src/plugin/plugin_updatechecker.py +++ b/src/plugin/plugin_updatechecker.py @@ -275,13 +275,13 @@ def check_update_available_installed_plugins(input_selected_object: str, config_ match config_values.connection: case "sftp": connection = sftp_create_connection() - plugin_list = sftp_list_all(connection) + plugin_list = sorted(sftp_list_all(connection)) case "ftp": connection = ftp_create_connection() - plugin_list = ftp_list_all(connection) + plugin_list = sorted(ftp_list_all(connection)) case _: plugin_folder_path = config_values.path_to_plugin_folder - plugin_list = os.listdir(plugin_folder_path) + plugin_list = sorted(os.listdir(plugin_folder_path)) plugin_count = plugins_with_udpates = 0 # create simple progress bar from rich