Remove force parameter from plugin index fetch in API handler

Remove force parameter parsing and passing from _fetch_index method in PluginInstall API handler. The force refresh functionality is now handled client-side through cache-busting headers and timestamp parameters added in previous commit (c7a9836).
This commit is contained in:
frdel 2026-03-27 10:26:50 +01:00
parent 1e6976f568
commit fad07c5ba8

View file

@ -56,11 +56,4 @@ class PluginInstall(ApiHandler):
return update_from_git(input.get("plugin_name", ""))
def _fetch_index(self, input: dict) -> dict:
force_raw = input.get("force", False)
force = force_raw if isinstance(force_raw, bool) else str(force_raw).strip().lower() in {
"1",
"true",
"yes",
"on",
}
return {"success": True, **get_plugin_hub_index(force=force)}
return {"success": True, **get_plugin_hub_index()}