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.
This commit is contained in:
Maddcow 2022-07-29 23:03:10 -04:00 committed by GitHub
parent 30f0dd91ac
commit 7a83fa67e0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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