Skip to content

Commit

Permalink
fix: add installed extensions to the ext list if missing (lnbits#2261)
Browse files Browse the repository at this point in the history
  • Loading branch information
motorina0 authored Feb 12, 2024
1 parent 11173e6 commit 20e7085
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions lnbits/core/views/generic.py
Original file line number Diff line number Diff line change
Expand Up @@ -95,11 +95,10 @@ async def extensions_install(
installed_exts: List["InstallableExtension"] = await get_installed_extensions()
installed_exts_ids = [e.id for e in installed_exts]

installable_exts: List[
InstallableExtension
] = await InstallableExtension.get_installable_extensions()
installable_exts = await InstallableExtension.get_installable_extensions()
installable_exts_ids = [e.id for e in installable_exts]
installable_exts += [
e for e in installed_exts if e.id not in installed_exts_ids
e for e in installed_exts if e.id not in installable_exts_ids
]

for e in installable_exts:
Expand Down

0 comments on commit 20e7085

Please sign in to comment.