Even if you set an investment, the default investment shows in the log

This commit is contained in:
Arnaud Gelas 2024-01-13 15:53:01 +01:00
parent da87e6aa8c
commit d340738013

View file

@ -83,6 +83,7 @@ class Team(BaseModel):
"""Invest company. raise NoMoneyException when exceed max_budget."""
self.investment = investment
CONFIG.max_budget = investment
CONFIG.cost_manager.max_budget = investment
logger.info(f"Investment: ${investment}.")
@staticmethod