From 733ca0eef38180cde92f3a4c630708604dc1644b Mon Sep 17 00:00:00 2001 From: Mark Veidemanis Date: Thu, 11 Aug 2022 23:17:45 +0100 Subject: [PATCH] Make tag parsing more robust --- core/views/ui/drilldown.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/views/ui/drilldown.py b/core/views/ui/drilldown.py index fb7dcaa..1788416 100644 --- a/core/views/ui/drilldown.py +++ b/core/views/ui/drilldown.py @@ -48,7 +48,7 @@ def create_tags(query): spl = query.split("AND") spl = [x.strip() for x in spl if ":" in x] spl = [x.replace('"', "") for x in spl] - tags = [f"{tag}: {elem}" for tag, elem in [x.split(":") for x in spl]] + tags = [f"{tag}: {elem}" for tag, elem in [x.split(":")[:2] for x in spl]] return tags