mirror of
https://git.mirrors.martin98.com/https://github.com/langgenius/dify.git
synced 2025-08-16 05:55:53 +08:00
🦄 refactor(dataset svc): delete check none (#4101)
Co-authored-by: baxiang <baxiang@lixiang.com>
This commit is contained in:
parent
3f8e2456f7
commit
13292ff73e
@ -131,13 +131,9 @@ class DatasetService:
|
|||||||
|
|
||||||
@staticmethod
|
@staticmethod
|
||||||
def get_dataset(dataset_id):
|
def get_dataset(dataset_id):
|
||||||
dataset = Dataset.query.filter_by(
|
return Dataset.query.filter_by(
|
||||||
id=dataset_id
|
id=dataset_id
|
||||||
).first()
|
).first()
|
||||||
if dataset is None:
|
|
||||||
return None
|
|
||||||
else:
|
|
||||||
return dataset
|
|
||||||
|
|
||||||
@staticmethod
|
@staticmethod
|
||||||
def check_dataset_model_setting(dataset):
|
def check_dataset_model_setting(dataset):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user