Skip to content

Commit

Permalink
Update tableau_parameters.py
Browse files Browse the repository at this point in the history
  • Loading branch information
Joseph Hutchins authored Feb 4, 2020
1 parent 205c10b commit 9c86756
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tableau_documents/tableau_parameters.py
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down

0 comments on commit 9c86756

Please sign in to comment.