mirror of
https://git.mirrors.martin98.com/https://github.com/langgenius/dify.git
synced 2025-08-14 09:05:56 +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
|
||||
def get_dataset(dataset_id):
|
||||
dataset = Dataset.query.filter_by(
|
||||
return Dataset.query.filter_by(
|
||||
id=dataset_id
|
||||
).first()
|
||||
if dataset is None:
|
||||
return None
|
||||
else:
|
||||
return dataset
|
||||
|
||||
@staticmethod
|
||||
def check_dataset_model_setting(dataset):
|
||||
|
Loading…
x
Reference in New Issue
Block a user