Skip to content

Commit

Permalink
fix: get_dimension with_cost_center_and_project=false is not working.
Browse files Browse the repository at this point in the history
with_cost_center_and_project is no python str, and it always evaluated as True, despite JS call it with false
  • Loading branch information
kittiu authored Jul 3, 2023
1 parent dedb5e2 commit 500d64a
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -271,6 +271,12 @@ def get_dimensions(with_cost_center_and_project=False):
as_dict=1,
)

if isinstance(with_cost_center_and_project, str):
if with_cost_center_and_project.lower().strip() == "true":
with_cost_center_and_project = True
else:
with_cost_center_and_project = False

if with_cost_center_and_project:
dimension_filters.extend(
[
Expand Down

0 comments on commit 500d64a

Please sign in to comment.