We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 209d85d commit 7b1a2a0Copy full SHA for 7b1a2a0
uncoder-core/app/translator/core/models/query_container.py
@@ -69,14 +69,13 @@ def __init__(
69
self.raw_mitre_attack = raw_mitre_attack or []
70
self.status = status or "stable"
71
self.false_positives = false_positives or []
72
- self.source_mapping_ids = source_mapping_ids or [DEFAULT_MAPPING_NAME]
+ self.source_mapping_ids = sorted(source_mapping_ids) if source_mapping_ids else [DEFAULT_MAPPING_NAME]
73
self.parsed_logsources = parsed_logsources or {}
74
self.timeframe = timeframe
75
76
@property
77
- def author_str(self) -> Optional[str]:
78
- if self.author:
79
- return ", ".join(self.author)
+ def author_str(self) -> str:
+ return ", ".join(self.author)
80
81
82
@dataclass
0 commit comments