From e13c0d0756339af5a833a010267b04a697d2c723 Mon Sep 17 00:00:00 2001 From: master3395 Date: Mon, 26 Jan 2026 03:48:13 +0100 Subject: [PATCH] fix(plugins): Add total_installed and total_active to context --- pluginHolder/views.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/pluginHolder/views.py b/pluginHolder/views.py index fe06092aa..354aea705 100644 --- a/pluginHolder/views.py +++ b/pluginHolder/views.py @@ -427,11 +427,17 @@ def installed(request): # Sort plugins deterministically by name to prevent order changes pluginList.sort(key=lambda x: x.get('name', '').lower()) + # Calculate statistics + total_installed = len(pluginList) + total_active = sum(1 for plugin in pluginList if plugin.get('enabled', False)) + # Add cache-busting timestamp to context to prevent browser caching import time context = { 'plugins': pluginList, 'error_plugins': errorPlugins, + 'total_installed': total_installed, + 'total_active': total_active, 'cache_buster': int(time.time()) # Add timestamp to force template reload }