updated old legacy store names
This commit is contained in:
@@ -133,7 +133,7 @@ def _store_choices_payload(choices: Any) -> Optional[str]:
|
||||
|
||||
|
||||
def _load_store_choices_from_config(*, force_reload: bool = False) -> list[str]:
|
||||
from Store.registry import list_configured_backend_names # noqa: WPS433
|
||||
from PluginCore.backend_registry import list_configured_backend_names # noqa: WPS433
|
||||
|
||||
cfg = reload_config() if force_reload else load_config()
|
||||
return _normalize_store_choices(list_configured_backend_names(cfg or {}))
|
||||
@@ -810,10 +810,10 @@ def _run_op(op: str, data: Any) -> Dict[str, Any]:
|
||||
"find-url",
|
||||
"find_url"}:
|
||||
try:
|
||||
from Store import Store # noqa: WPS433
|
||||
from PluginCore.backend_registry import BackendRegistry # noqa: WPS433
|
||||
|
||||
cfg = load_config() or {}
|
||||
storage = Store(config=cfg, suppress_debug=True)
|
||||
storage = BackendRegistry(config=cfg, suppress_debug=True)
|
||||
|
||||
raw_needles: list[str] = []
|
||||
if isinstance(data, dict):
|
||||
|
||||
Reference in New Issue
Block a user