Skip to content

Commit 03b9adc

Browse files
Fixing broken method
1 parent aa86646 commit 03b9adc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

classes/episode/latest_episode_latest_investigation_dataset.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,6 @@ def from_description(cls, description: str) -> str:
5252
ValueError: If the description is not recognized.
5353
"""
5454
key = description.strip().lower()
55-
if key not in cls._valid_values:
55+
if key not in (value.lower() for value in cls._valid_values):
5656
raise ValueError(f"Unknown investigation dataset filter: '{description}'")
5757
return key

0 commit comments

Comments
 (0)