diff --git a/dokogen/variables.py b/dokogen/variables.py index d31b14a..0923711 100644 --- a/dokogen/variables.py +++ b/dokogen/variables.py @@ -328,6 +328,22 @@ def _build_loop_data(company: Company, is_list: List) -> Dict[str, List[Dict]]: 'balance_value': getattr(isys, 'balance_value', '') or '—', 'attacker_category': getattr(isys, 'attacker_category', '') or '—', 'threats': getattr(isys, 'threats', '') or '—', + # Алиасы под шаблон «Сведения о результатах категорирования» (ФСТЭК) + 'objective': getattr(isys, 'purpose', '') or '—', + 'standard_name': getattr(isys, 'typical_object', '') or '—', + 'network_category': getattr(isys, 'net_category', '') or '—', + 'provider': getattr(isys, 'net_operator', '') or '—', + 'interaction_purpose': getattr(isys, 'net_purpose', '') or '—', + 'interaction_method': getattr(isys, 'net_method', '') or '—', + 'hardware': getattr(isys, 'hw_sw', '') or '—', + 'system_software': getattr(isys, 'os_sw', '') or '—', + 'defense_tools': ', '.join(isys.defense_tools_list or []) or '—', + 'component': getattr(isys, 'subject_element', '') or '—', + 'exploiting_org': getattr(isys, 'subject_name', '') or '—', + 'exploiting_inn': getattr(isys, 'subject_inn', '') or '—', + 'domain': getattr(isys, 'domain_name', '') or '—', + 'threat_actor': getattr(isys, 'attacker_category', '') or '—', + 'threat_justification': getattr(isys, 'threats', '') or '—', 'incidents': getattr(isys, 'incidents', '') or '—', 'criteria_values': getattr(isys, 'criteria_values', '') or '—', 'criteria_justification': getattr(isys, 'criteria_justification', '') or '—',