From 3f77759c4c56609d7dce48de7b136386e6c0b005 Mon Sep 17 00:00:00 2001 From: Joel Barmettler <24369532+joelbarmettlerUZH@users.noreply.github.com> Date: Wed, 24 Jul 2024 17:50:28 +0200 Subject: [PATCH] fix: Changes dataset name query from is to equal (#3983) --- src/phoenix/server/api/routers/v1/datasets.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/phoenix/server/api/routers/v1/datasets.py b/src/phoenix/server/api/routers/v1/datasets.py index 59d9d5ad70..dd4b906691 100644 --- a/src/phoenix/server/api/routers/v1/datasets.py +++ b/src/phoenix/server/api/routers/v1/datasets.py @@ -121,7 +121,7 @@ async def list_datasets( status_code=HTTP_422_UNPROCESSABLE_ENTITY, ) if name: - query = query.filter(models.Dataset.name.is_(name)) + query = query.filter(models.Dataset.name == name) query = query.limit(limit + 1) result = await session.execute(query)