chore: code clean-up

This commit is contained in:
Vlad Stan 2023-02-16 10:48:27 +02:00
parent 61fb44a04e
commit 4345361847
2 changed files with 2 additions and 4 deletions

View File

@ -775,9 +775,7 @@ async def api_install_extension(
@core_app.delete("/api/v1/extension/{ext_id}")
async def api_uninstall_extension(ext_id: str, user: User = Depends(check_admin)):
installable_extensions: List[
InstallableExtension
] = await InstallableExtension.get_installable_extensions()
installable_extensions = await InstallableExtension.get_installable_extensions()
extensions = [e for e in installable_extensions if e.id == ext_id]
if len(extensions) == 0:

View File

@ -52,7 +52,7 @@ class Extension(NamedTuple):
class ExtensionManager:
def __init__(self, include_disabled_exts=False):
def __init__(self):
self._disabled: List[str] = settings.lnbits_disabled_extensions
self._admin_only: List[str] = settings.lnbits_admin_extensions
self._extension_folders: List[str] = [