Skip to content

Commit

Permalink
Merge pull request #128 from stat-kwon/master
Browse files Browse the repository at this point in the history
Add data_name key when using timediff options
  • Loading branch information
stat-kwon authored Dec 17, 2024
2 parents 263a222 + 0215f6f commit c8053ff
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/spaceone/dashboard/service/private_data_table_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -270,6 +270,9 @@ def update(
elif months := timediff.get("months"):
options["timediff"] = {"months": months}

if data_name := timediff.get("data_name"):
options["timediff"].update({"data_name": data_name})

params_dict["options"] = options
else:
operator = pri_data_table_vo.operator
Expand Down
3 changes: 3 additions & 0 deletions src/spaceone/dashboard/service/public_data_table_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -287,6 +287,9 @@ def update(
elif months := timediff.get("months"):
options["timediff"] = {"months": months}

if data_name := timediff.get("data_name"):
options["timediff"].update({"data_name": data_name})

params_dict["options"] = options
else:
operator = pub_data_table_vo.operator
Expand Down

0 comments on commit c8053ff

Please sign in to comment.