Port Manticore and debug

This commit is contained in:
2025-01-23 11:35:39 +00:00
parent fe087eb591
commit a4c3834b62
11 changed files with 29 additions and 17 deletions

View File

@@ -94,7 +94,7 @@ def parse_results(results, meta=None):
del element[field]
# Unfold the tokens
if "tokens" in element:
if element["tokens"].startswith('["'):
if element["tokens"].startswith('["') or element["tokens"].startswith("['"):
tokens_parsed = ast.literal_eval(element["tokens"])
element["tokens"] = tokens_parsed