feat: deal attributes with select and options
This commit is contained in:
@ -31,8 +31,9 @@ class ModuleService(
|
||||
raise ObjectNotFoundException(f"Модуль с ID {pk} не найден")
|
||||
return GetByIdWithAttributesResponse(entity=module)
|
||||
|
||||
@staticmethod
|
||||
def _build_modules_with_attributes(
|
||||
self, result: list[tuple]
|
||||
result: list[tuple],
|
||||
) -> dict[int, ModuleWithAttributesSchema]:
|
||||
module_attrs_dict: dict[int, ModuleWithAttributesSchema] = {}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user