decide only one avatar each time

This commit is contained in:
bridge
2025-12-08 22:08:53 +08:00
parent 33cf306e58
commit 303bffe413
9 changed files with 96 additions and 30 deletions

View File

@@ -157,6 +157,7 @@ class AvatarLoadMixin:
avatar.thinking = data.get("thinking", "")
avatar.short_term_objective = data.get("short_term_objective", "")
avatar._action_cd_last_months = data.get("_action_cd_last_months", {})
avatar.known_regions = set(data.get("known_regions", []))
# 加载长期目标
long_term_objective_data = data.get("long_term_objective")

View File

@@ -104,5 +104,6 @@ class AvatarSaveMixin:
"set_year": self.long_term_objective.set_year
} if self.long_term_objective else None,
"_action_cd_last_months": self._action_cd_last_months,
"known_regions": list(self.known_regions),
}