From 9c86756b0857696e18bc786003ce00350fe75897 Mon Sep 17 00:00:00 2001 From: Joseph Hutchins Date: Tue, 4 Feb 2020 13:45:39 -0700 Subject: [PATCH] Update tableau_parameters.py --- tableau_documents/tableau_parameters.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tableau_documents/tableau_parameters.py b/tableau_documents/tableau_parameters.py index b00a844..9fec3cc 100644 --- a/tableau_documents/tableau_parameters.py +++ b/tableau_documents/tableau_parameters.py @@ -270,7 +270,7 @@ def get_datasource_xml(self) -> str: def get_parameter_by_name(self, parameter_name: str) -> TableauParameter: for p in self._parameters: - if p.name == parameter_name: + if self.parameters[p].name == parameter_name: return p else: raise NoMatchFoundException('No parameter named {}'.format(parameter_name))