From 369789512df40c6c4867ae87a5c7bd77c58bc6e5 Mon Sep 17 00:00:00 2001 From: Denys SAVCHENKO Date: Mon, 4 Nov 2024 14:41:30 +0100 Subject: [PATCH] keep old method name --- cdci_data_analysis/analysis/queries.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/cdci_data_analysis/analysis/queries.py b/cdci_data_analysis/analysis/queries.py index 5a368b62..58f27af5 100644 --- a/cdci_data_analysis/analysis/queries.py +++ b/cdci_data_analysis/analysis/queries.py @@ -404,6 +404,12 @@ def get_parameters_list_jsonifiable(self, prod_dict=None): l1 = self._remove_duplicates_from_par_list(l) return l1 + def get_parameters_list_as_json(self, prod_dict=None): + logger.warning("Method name 'get_parameters_list_as_json' is deptrecated, " + "please use 'get_parameters_list_jsonifiable'") + self.get_parameters_list_jsonifiable(prod_dict=prod_dict) + + def get_prod_by_name(self,name): return self.query_prod_list.get_prod_by_name(name)