mirror of https://github.com/langgenius/dify.git
fix: ruff format
This commit is contained in:
parent
eecbe533a1
commit
e3484c8dc3
|
|
@ -723,9 +723,7 @@ class PluginReadmeApi(Resource):
|
|||
return jsonable_encoder(
|
||||
{
|
||||
"readme": PluginService.fetch_plugin_readme(
|
||||
tenant_id,
|
||||
args["plugin_unique_identifier"],
|
||||
args.get("language", "en-US")
|
||||
tenant_id, args["plugin_unique_identifier"], args.get("language", "en-US")
|
||||
)
|
||||
}
|
||||
)
|
||||
|
|
|
|||
|
|
@ -15,10 +15,7 @@ class PluginAssetManager(BasePluginClient):
|
|||
response = self._request(
|
||||
method="GET",
|
||||
path=f"plugin/{tenant_id}/extract-asset/",
|
||||
params={
|
||||
"plugin_unique_identifier": plugin_unique_identifier,
|
||||
"file_path": filename
|
||||
}
|
||||
params={"plugin_unique_identifier": plugin_unique_identifier, "file_path": filename},
|
||||
)
|
||||
if response.status_code != 200:
|
||||
raise ValueError(f"can not found asset {plugin_unique_identifier}, {str(response.status_code)}")
|
||||
|
|
|
|||
|
|
@ -34,8 +34,8 @@ class PluginInstaller(BasePluginClient):
|
|||
params={
|
||||
"tenant_id": tenant_id,
|
||||
"plugin_unique_identifier": plugin_unique_identifier,
|
||||
"language": language
|
||||
}
|
||||
"language": language,
|
||||
},
|
||||
)
|
||||
return response.content
|
||||
except HTTPError as e:
|
||||
|
|
|
|||
Loading…
Reference in New Issue