Skip to content

Commit b8af953

Browse files
committed
fix
1 parent 0b62062 commit b8af953

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ def __init__(
5757
self.id = id_ or str(uuid.uuid4())
5858
self.title = title or ""
5959
self.description = description or ""
60-
self.author = author or []
60+
self.author = [v.strip() for v in author] if author else []
6161
self.date = date or datetime.now().date().strftime("%Y-%m-%d")
6262
self.output_table_fields = output_table_fields or []
6363
self.query_fields = query_fields or []

uncoder-core/app/translator/platforms/roota/parsers/roota.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ def __parse_meta_info(self, rule: dict) -> MetaInfoContainer:
5757
id_=rule.get("uuid"),
5858
title=rule.get("name"),
5959
description=rule.get("details"),
60-
author=rule.get("author"),
60+
author=rule.get("author", "").split(", "),
6161
date=rule.get("date"),
6262
license_=rule.get("license"),
6363
severity=rule.get("severity"),

0 commit comments

Comments
 (0)