mirror of
https://git.mirrors.martin98.com/https://github.com/langgenius/dify.git
synced 2025-08-18 15:35:56 +08:00
fix: ruff
This commit is contained in:
parent
6e73ad2fc6
commit
adf7eea7fe
@ -9,13 +9,13 @@ def init_app(app: DifyApp):
|
|||||||
extract_plugins,
|
extract_plugins,
|
||||||
extract_unique_plugins,
|
extract_unique_plugins,
|
||||||
fix_app_site_missing,
|
fix_app_site_missing,
|
||||||
|
install_plugins,
|
||||||
migrate_data_for_plugin,
|
migrate_data_for_plugin,
|
||||||
reset_email,
|
reset_email,
|
||||||
reset_encrypt_key_pair,
|
reset_encrypt_key_pair,
|
||||||
reset_password,
|
reset_password,
|
||||||
upgrade_db,
|
upgrade_db,
|
||||||
vdb_migrate,
|
vdb_migrate,
|
||||||
install_plugins,
|
|
||||||
)
|
)
|
||||||
|
|
||||||
cmds_to_register = [
|
cmds_to_register = [
|
||||||
|
@ -1,12 +1,12 @@
|
|||||||
from concurrent.futures import ThreadPoolExecutor
|
|
||||||
import datetime
|
import datetime
|
||||||
import json
|
import json
|
||||||
import logging
|
import logging
|
||||||
from collections.abc import Sequence
|
|
||||||
from pathlib import Path
|
|
||||||
import sys
|
import sys
|
||||||
import time
|
import time
|
||||||
from typing import Any, Mapping, Optional
|
from collections.abc import Mapping, Sequence
|
||||||
|
from concurrent.futures import ThreadPoolExecutor
|
||||||
|
from pathlib import Path
|
||||||
|
from typing import Any, Optional
|
||||||
from uuid import uuid4
|
from uuid import uuid4
|
||||||
|
|
||||||
import click
|
import click
|
||||||
@ -392,7 +392,7 @@ class PluginMigration:
|
|||||||
],
|
],
|
||||||
)
|
)
|
||||||
|
|
||||||
with open(extracted_plugins, "r") as f:
|
with open(extracted_plugins) as f:
|
||||||
"""
|
"""
|
||||||
Read line by line, and install plugins for each tenant.
|
Read line by line, and install plugins for each tenant.
|
||||||
"""
|
"""
|
||||||
|
Loading…
x
Reference in New Issue
Block a user