When setting the max budget, I don't want to overcome this limit

This commit is contained in:
Arnaud Gelas 2024-01-13 16:10:46 +01:00
parent d340738013
commit 34b3de1f86

View file

@ -88,7 +88,7 @@ class Team(BaseModel):
@staticmethod
def _check_balance():
if CONFIG.cost_manager.total_cost > CONFIG.cost_manager.max_budget:
if CONFIG.cost_manager.total_cost >= CONFIG.cost_manager.max_budget:
raise NoMoneyException(
CONFIG.cost_manager.total_cost, f"Insufficient funds: {CONFIG.cost_manager.max_budget}"
)