mirror of
https://github.com/langgenius/dify.git
synced 2024-11-16 11:42:29 +08:00
feat: support latest package identifier
This commit is contained in:
parent
c657378d06
commit
5bf86ff66d
|
@ -106,6 +106,7 @@ class PluginEntity(BasePluginEntity):
|
|||
runtime_type: str
|
||||
version: str
|
||||
latest_version: Optional[str] = None
|
||||
latest_unique_identifier: Optional[str] = None
|
||||
source: PluginInstallationSource
|
||||
meta: Mapping[str, Any]
|
||||
|
||||
|
|
|
@ -35,6 +35,7 @@ class PluginService:
|
|||
if plugin.plugin_id in manifests:
|
||||
# set latest_version
|
||||
plugin.latest_version = manifests[plugin.plugin_id].latest_version
|
||||
plugin.latest_unique_identifier = manifests[plugin.plugin_id].latest_package_identifier
|
||||
|
||||
return plugins
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user