fix filter_bys

This commit is contained in:
Kenneth Kehl
2024-12-19 11:10:03 -08:00
parent 659169366c
commit 3388371428
35 changed files with 245 additions and 140 deletions

View File

@@ -88,7 +88,7 @@ def test_deactivating_service_creates_history(archived_service):
history = (
db.session.execute(
select(ServiceHistory)
.filter_by(id=archived_service.id)
.where(ServiceHistory.id == archived_service.id)
.order_by(ServiceHistory.version.desc())
)
.scalars()