diff --git a/src/spaceone/dashboard/service/private_data_table_service.py b/src/spaceone/dashboard/service/private_data_table_service.py index 5695caa..c5bfc37 100644 --- a/src/spaceone/dashboard/service/private_data_table_service.py +++ b/src/spaceone/dashboard/service/private_data_table_service.py @@ -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 diff --git a/src/spaceone/dashboard/service/public_data_table_service.py b/src/spaceone/dashboard/service/public_data_table_service.py index 7c508ed..0feb3b4 100644 --- a/src/spaceone/dashboard/service/public_data_table_service.py +++ b/src/spaceone/dashboard/service/public_data_table_service.py @@ -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