Skip to content

Commit

Permalink
Fixed the ticket extend
Browse files Browse the repository at this point in the history
  • Loading branch information
athiruma committed Feb 2, 2024
1 parent cd15e6a commit 07987a0
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,10 @@ def _monitor_ticket_budget(self, ticket_id: str, region_name: str, budget: int,
used_budget=used_budget,
remain_budget=remaining_budget)
elif remaining_budget <= 0:
subject, body = self.__mail_message.cro_monitor_budget_remain_high_alert(user=user, budget=budget,
ticket_extended = self.extend_tickets_budget(ticket_id=ticket_id, region_name=region_name,
current_budget=budget)
if not ticket_extended:
subject, body = self.__mail_message.cro_monitor_budget_remain_high_alert(user=user, budget=budget,
ticket_id=ticket_id,
used_budget=used_budget,
remain_budget=remaining_budget)
Expand Down

0 comments on commit 07987a0

Please sign in to comment.