Skip to content

Commit 7b1a2a0

Browse files
committed
fix
1 parent 209d85d commit 7b1a2a0

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

uncoder-core/app/translator/core/models/query_container.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -69,14 +69,13 @@ def __init__(
6969
self.raw_mitre_attack = raw_mitre_attack or []
7070
self.status = status or "stable"
7171
self.false_positives = false_positives or []
72-
self.source_mapping_ids = source_mapping_ids or [DEFAULT_MAPPING_NAME]
72+
self.source_mapping_ids = sorted(source_mapping_ids) if source_mapping_ids else [DEFAULT_MAPPING_NAME]
7373
self.parsed_logsources = parsed_logsources or {}
7474
self.timeframe = timeframe
7575

7676
@property
77-
def author_str(self) -> Optional[str]:
78-
if self.author:
79-
return ", ".join(self.author)
77+
def author_str(self) -> str:
78+
return ", ".join(self.author)
8079

8180

8281
@dataclass

0 commit comments

Comments
 (0)