Closed toconnell closed 5 years ago
This is because this really old settlement has fighting arts whose "handles" are actually their names. There's a lookup problem....that I think we can fix just by using the built-in get_asset()
switch that backs off to names...
@@ -2359,7 +2364,11 @@ class Settlement(models.UserAsset):
elif return_type == "JSON":
output = []
for fa_handle in sorted(fa_handles):
- fa_dict = self.FightingArts.get_asset(fa_handle, raise_exception_if_not_found=False)
+ fa_dict = self.FightingArts.get_asset(
+ fa_handle,
+ backoff_to_name=True,
+ raise_exception_if_not_found=False
+ )
if fa_handle in dead_survivors and fa_handle not in live_survivors:
fa_dict['select_disabled'] = True
output.append(fa_dict)
We're going out with this in the patch release.