decide only one avatar each time
This commit is contained in:
@@ -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")
|
||||
|
||||
@@ -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),
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user