Skip to content

Commit

Permalink
feat: modify send cost report email condition
Browse files Browse the repository at this point in the history
  • Loading branch information
ImMin5 committed Jan 25, 2024
1 parent bea918e commit 8ae0eb4
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions src/spaceone/cost_analysis/service/cost_report_serivce.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 8ae0eb4

Please sign in to comment.