Skip to content

Commit

Permalink
fix: remove one_or_none
Browse files Browse the repository at this point in the history
  • Loading branch information
maocorte committed Jun 25, 2024
1 parent 330288f commit e8bcd2d
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 2 deletions.
1 change: 0 additions & 1 deletion api/app/db/dao/current_dataset_dao.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,6 @@ def get_all_current_datasets_by_model_uuid(
session.query(CurrentDataset)
.order_by(desc(CurrentDataset.date))
.where(CurrentDataset.model_uuid == model_uuid)
.one_or_none()
)

def get_all_current_datasets_by_model_uuid_paginated(
Expand Down
1 change: 0 additions & 1 deletion api/app/db/dao/reference_dataset_dao.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,6 @@ def get_all_reference_datasets_by_model_uuid(
session.query(ReferenceDataset)
.order_by(desc(ReferenceDataset.date))
.where(ReferenceDataset.model_uuid == model_uuid)
.one_or_none()
)

def get_all_reference_datasets_by_model_uuid_paginated(
Expand Down

0 comments on commit e8bcd2d

Please sign in to comment.