Skip to content
This repository was archived by the owner on Jun 19, 2025. It is now read-only.

Commit 2831e0d

Browse files
fix(experiment-details): update IDType.UUID from string to imported type (#220)
update IDType.UUID from string to imported type
1 parent 55d1c69 commit 2831e0d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

aqueductcore/backend/routers/graphql/resolvers/task_resolver.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
from aqueductcore.backend.context import ServerContext
99
from aqueductcore.backend.errors import AQDValidationError
10-
from aqueductcore.backend.routers.graphql.inputs import TasksFilterInput
10+
from aqueductcore.backend.routers.graphql.inputs import TasksFilterInput, IDType
1111
from aqueductcore.backend.routers.graphql.types import (
1212
TaskData,
1313
Tasks,
@@ -33,7 +33,7 @@ async def get_tasks(
3333
experiment = None
3434
if filters is not None:
3535
experiment = filters.experiment
36-
if experiment is not None and experiment.type != "IDType.UUID":
36+
if experiment is not None and experiment.type != IDType.UUID:
3737
raise AQDValidationError(
3838
"Only UUID is supported as experiment identifier in Task filter"
3939
)

0 commit comments

Comments
 (0)