Restructure for enabling/disabling

This commit is contained in:
Nirvana
2025-12-25 13:17:12 +01:00
parent ba3215c177
commit c59099bd94
4 changed files with 17 additions and 45 deletions
@@ -23,8 +23,12 @@ class ProviderMetadata:
if self.plugin_class.supports_multiple_countries():
self.name = f"{self.plugin_name}_{self.country}"
# For multi-country providers, include country in label
self.label = self.plugin_class.get_static_label(self.country)
else:
self.name = self.plugin_name
self.name = self.plugin_name # e.g., "hrti" (no country suffix)
# For single-country providers, don't include country in label
self.label = self.plugin_class.get_static_label() # ← Call WITHOUT country!
self.label = self.plugin_class.get_static_label(self.country)
self.supported_auth_types = self.plugin_class.get_static_auth_types()