From 00c171de13128cdb41ff791a33617a6b48d864f9 Mon Sep 17 00:00:00 2001 From: Giulia Ghisini Date: Mon, 22 Jul 2024 11:56:05 +0200 Subject: [PATCH] fix: endpoint serch_tassonomie param value --- .../policy/restapi/services/search_tassonomie/get.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/iosanita/policy/restapi/services/search_tassonomie/get.py b/src/iosanita/policy/restapi/services/search_tassonomie/get.py index e84ef76..a33cc10 100644 --- a/src/iosanita/policy/restapi/services/search_tassonomie/get.py +++ b/src/iosanita/policy/restapi/services/search_tassonomie/get.py @@ -48,9 +48,9 @@ def reply(self): # add standard query filters for query_index in BASE_FILTERS: - value = self.request.form.get(query_index, "") - if value: - query[query_index] = value + value_index = self.request.form.get(query_index, "") + if value_index: + query[query_index] = value_index # then filter by taxonomy all_values = pc.uniqueValuesFor(index)