diff --git a/lnbits/core/views/generic.py b/lnbits/core/views/generic.py index 629a1b7e..377a979f 100644 --- a/lnbits/core/views/generic.py +++ b/lnbits/core/views/generic.py @@ -112,6 +112,17 @@ async def extensions_install( "dependencies": ext.dependencies, "isInstalled": ext.id in installed_extensions, "isActive": not ext.id in inactive_extensions, + "releases": [ + { + "name": r.name, + "version": r.version, + "archive": r.archive, + # "description": base64.b64encode(r.description.encode()), + } + for r in ext.releases + ] + if ext.releases + else None, }, extension_list, ) diff --git a/lnbits/extension_manger.py b/lnbits/extension_manger.py index 9c050a27..43f1ac14 100644 --- a/lnbits/extension_manger.py +++ b/lnbits/extension_manger.py @@ -230,6 +230,7 @@ class InstallableExtension(BaseModel): short_description=config.get("short_description"), archive="xx", hash="123", + version="0", stars=repo["stargazers_count"], icon_url=icon_to_github_url(org, config.get("tile")), releases=ExtensionRelease.from_github_releases(releases),