diff --git a/backend/aethel_db/views/sample_data.py b/backend/aethel_db/views/sample_data.py index 0fea6a9..b72ba9b 100644 --- a/backend/aethel_db/views/sample_data.py +++ b/backend/aethel_db/views/sample_data.py @@ -89,10 +89,10 @@ def get(self, request: HttpRequest) -> JsonResponse: for sample in samples: for phrase_index, phrase in enumerate(sample.lexical_phrases): - word_match = word_input and match_word_with_phrase_exact( + word_match = match_word_with_phrase_exact( phrase, word_input ) - type_match = type_input and match_type_with_phrase(phrase, type_input) + type_match = match_type_with_phrase(phrase, type_input) if not (word_match and type_match): continue