From 77963f04a2c2b2fa2d2ad011d8053efdc8d4d76f Mon Sep 17 00:00:00 2001 From: Vishal Date: Tue, 21 May 2024 02:37:34 +0530 Subject: [PATCH 1/5] Fixing an error in notifications of new plugins. --- plugin_manager.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/plugin_manager.py b/plugin_manager.py index 154b96c..228fb27 100644 --- a/plugin_manager.py +++ b/plugin_manager.py @@ -372,6 +372,9 @@ class StartupTasks: babase.app.config.commit() return + def title_it(plug): + plug = str(plug).replace('_', ' ').title() + return plug if existing_num_of_plugins < new_num_of_plugins: new_plugin_count = new_num_of_plugins - existing_num_of_plugins all_plugins = await self.plugin_manager.categories["All"].get_plugins() @@ -381,11 +384,9 @@ class StartupTasks: reverse=True, ) new_supported_plugins = new_supported_plugins[:new_plugin_count] - new_supported_plugins = [plug.replace('_', ' ').title() - for plug in new_supported_plugins] new_supported_plugins_count = len(new_supported_plugins) if new_supported_plugins_count > 0: - new_supported_plugins = ", ".join(map(str, (new_supported_plugins + new_supported_plugins = ", ".join(map(title_it, (new_supported_plugins if new_supported_plugins_count <= show_max_names else new_supported_plugins[0:show_max_names]) )) From bca0e85ebaad1f54be3e5e73a197a26963484188 Mon Sep 17 00:00:00 2001 From: Vishal Date: Tue, 21 May 2024 02:41:04 +0530 Subject: [PATCH 2/5] Updating to 1.0.21 --- index.json | 1 + plugin_manager.py | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/index.json b/index.json index 155fd08..57fad04 100644 --- a/index.json +++ b/index.json @@ -1,6 +1,7 @@ { "plugin_manager_url": "https://github.com/bombsquad-community/plugin-manager/{content_type}/{tag}/plugin_manager.py", "versions": { + "1.0.21:": null, "1.0.20": { "api_version": 8, "commit_sha": "5ce10ce", diff --git a/plugin_manager.py b/plugin_manager.py index 228fb27..c84071d 100644 --- a/plugin_manager.py +++ b/plugin_manager.py @@ -31,7 +31,7 @@ from datetime import datetime from threading import Thread import logging -PLUGIN_MANAGER_VERSION = "1.0.20" +PLUGIN_MANAGER_VERSION = "1.0.21" REPOSITORY_URL = "https://github.com/bombsquad-community/plugin-manager" # Current tag can be changed to "staging" or any other branch in # plugin manager repo for testing purpose. From fdaceaee3d99b16a5de9c3bccd5e5a2701f6f049 Mon Sep 17 00:00:00 2001 From: Vishal Date: Tue, 21 May 2024 02:43:43 +0530 Subject: [PATCH 3/5] Update CHANGELOG.md --- CHANGELOG.md | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 9cc832d..3c76330 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,10 +1,14 @@ ## Plugin Manager (dd-mm-yyyy) +### 1.0.21 (20-05-2024) + +- Fixed an error related with notification of new plugins. + ### 1.0.20 (13-05-2024) - Now compatible with BS version 1.7.35+. - Updated build_number and version attributes to latest. -- FIX: Changelog for all version was shown after refreshing +- FIX: Changelog for all version was shown after refreshing. ### 1.0.19 (05-05-2024) From b1a3aaa9143b6551c1567b2366241ebf37c52307 Mon Sep 17 00:00:00 2001 From: vishal332008 Date: Mon, 20 May 2024 21:33:08 +0000 Subject: [PATCH 4/5] [ci] auto-format --- plugin_manager.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugin_manager.py b/plugin_manager.py index c84071d..81844db 100644 --- a/plugin_manager.py +++ b/plugin_manager.py @@ -387,8 +387,8 @@ class StartupTasks: new_supported_plugins_count = len(new_supported_plugins) if new_supported_plugins_count > 0: new_supported_plugins = ", ".join(map(title_it, (new_supported_plugins - if new_supported_plugins_count <= show_max_names else - new_supported_plugins[0:show_max_names]) + if new_supported_plugins_count <= show_max_names else + new_supported_plugins[0:show_max_names]) )) if new_supported_plugins_count == 1: notification_text = f"{new_supported_plugins_count} new plugin ({new_supported_plugins}) is available!" From d1c7bb129e24d6e877c7b3a8d7b00969060bb248 Mon Sep 17 00:00:00 2001 From: vishal332008 Date: Mon, 20 May 2024 21:33:09 +0000 Subject: [PATCH 5/5] [ci] apply-version-metadata --- index.json | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/index.json b/index.json index 57fad04..0c8443b 100644 --- a/index.json +++ b/index.json @@ -1,7 +1,12 @@ { "plugin_manager_url": "https://github.com/bombsquad-community/plugin-manager/{content_type}/{tag}/plugin_manager.py", "versions": { - "1.0.21:": null, + "1.0.21:": { + "api_version": 8, + "commit_sha": "b1a3aaa", + "released_on": "20-05-2024", + "md5sum": "e00d6ce92ce4651eceb5ae389ca5c4fb" + }, "1.0.20": { "api_version": 8, "commit_sha": "5ce10ce",