fix multiclass submissions

This commit is contained in:
evilchili 2024-03-23 13:46:56 -07:00
parent 304a4d9c79
commit b92ff868a5

View File

@ -143,12 +143,10 @@ class CharacterSheet(BaseController):
).first()
if attr_map.class_attribute_id not in assigned:
self.record.character_class_attribute_map.append(
CharacterClassAttributeMap(
class_attribute_id=attr_map.class_attribute_id,
option=default_option
)
)
self.record.class_attributes.append({
'class_attribute_id': attr_map.class_attribute_id,
'option_id': default_option.id,
})
def save_callback(self):
self.add_class_attributes()