fix: ext upgrade (#2776)

This commit is contained in:
Vlad Stan
2024-11-13 13:00:05 +02:00
committed by GitHub
parent bbae4a01c1
commit 8c5c455f1c
4 changed files with 32 additions and 9 deletions
+5 -1
View File
@@ -169,7 +169,11 @@ class Extension(BaseModel):
name=ext_info.name,
short_description=ext_info.short_description,
tile=ext_info.icon,
upgrade_hash=settings.extension_upgrade_hash(ext_info.id),
upgrade_hash=(
ext_info.hash
if settings.extension_has_been_activated(ext_info.id)
else ""
),
)