feat: processing of modules in card, renaming

This commit is contained in:
2025-02-20 20:20:42 +04:00
parent 1af78ce08a
commit c6c006d45b
7 changed files with 174 additions and 167 deletions

View File

@@ -78,11 +78,13 @@ class CardAttributesCommandHandler(BaseHandler):
try:
for attr_name, attr_value in attributes.items():
attr = next(attr for attr in project_attrs if attr.name == attr_name)
if attr:
try:
attr = next(attr for attr in project_attrs if attr.name == attr_name)
if attr.is_applicable_to_group and card.group:
await self.set_attr_for_each_in_group(card.group.id, attr_name, attr_value)
else:
await self._set_card_attribute(card.id, attr_name, attr_value)
except StopIteration:
pass
except CardAttributeException:
raise