just use deserialize instead of recover

This commit is contained in:
better629 2023-12-21 00:16:28 +08:00
parent 6877fa444f
commit 0543c0f76b
2 changed files with 3 additions and 3 deletions

View file

@ -67,7 +67,7 @@ def startup(
if not stg_path.exists() or not str(stg_path).endswith("team"):
raise FileNotFoundError(f"{recover_path} not exists or not endswith `team`")
company = Team.recover(stg_path=stg_path)
company = Team.deserialize(stg_path=stg_path)
idea = company.idea # use original idea
company.invest(investment)