Skip to content

Commit

Permalink
fix: add data_name key when using timediff options
Browse files Browse the repository at this point in the history
Signed-off-by: seolmin <[email protected]>
  • Loading branch information
stat-kwon committed Dec 17, 2024
1 parent c21d9a4 commit 0215f6f
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 0215f6f

Please sign in to comment.