From 8ae0eb41618cdabe32c796c9023297a68cf73b56 Mon Sep 17 00:00:00 2001 From: ImMin5 Date: Fri, 26 Jan 2024 07:39:59 +0900 Subject: [PATCH] feat: modify send cost report email condition --- src/spaceone/cost_analysis/service/cost_report_serivce.py | 6 ------ 1 file changed, 6 deletions(-) diff --git a/src/spaceone/cost_analysis/service/cost_report_serivce.py b/src/spaceone/cost_analysis/service/cost_report_serivce.py index 878cca99..873bfc15 100644 --- a/src/spaceone/cost_analysis/service/cost_report_serivce.py +++ b/src/spaceone/cost_analysis/service/cost_report_serivce.py @@ -307,12 +307,6 @@ def _delete_old_cost_reports(self, report_month: str, domain_id: str) -> None: cost_reports_vos.delete() def send_cost_report(self, cost_report_vo: CostReport) -> None: - issue_date = cost_report_vo.issue_date - if issue_date != datetime.utcnow().strftime("%Y-%m-%d"): - _LOGGER.debug( - f"[send_cost_report] skip send cost report ({cost_report_vo.workspace_id}/{cost_report_vo.cost_report_id})" - ) - return domain_id = cost_report_vo.domain_id workspace_id = cost_report_vo.workspace_id