mirror of
https://git.mirrors.martin98.com/https://github.com/langgenius/dify.git
synced 2025-08-19 01:15:53 +08:00
fix: ruff formatter
This commit is contained in:
parent
b980c07af8
commit
cbc5045b7a
@ -350,7 +350,7 @@ class ProviderManager:
|
|||||||
:param tenant_id: workspace id
|
:param tenant_id: workspace id
|
||||||
:return:
|
:return:
|
||||||
"""
|
"""
|
||||||
providers = db.session.query(Provider).filter(Provider.tenant_id == tenant_id, Provider.is_valid == True).all() # noqa
|
providers = db.session.query(Provider).filter(Provider.tenant_id == tenant_id, Provider.is_valid == True).all()
|
||||||
|
|
||||||
provider_name_to_provider_records_dict = defaultdict(list)
|
provider_name_to_provider_records_dict = defaultdict(list)
|
||||||
for provider in providers:
|
for provider in providers:
|
||||||
@ -369,7 +369,7 @@ class ProviderManager:
|
|||||||
# Get all provider model records of the workspace
|
# Get all provider model records of the workspace
|
||||||
provider_models = (
|
provider_models = (
|
||||||
db.session.query(ProviderModel)
|
db.session.query(ProviderModel)
|
||||||
.filter(ProviderModel.tenant_id == tenant_id, ProviderModel.is_valid == True) # noqa
|
.filter(ProviderModel.tenant_id == tenant_id, ProviderModel.is_valid == True)
|
||||||
.all()
|
.all()
|
||||||
)
|
)
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user