Make tag handling much more flexible

This commit is contained in:
2022-08-09 07:20:30 +01:00
parent 16c03bc19a
commit ae489b1045
3 changed files with 95 additions and 87 deletions

View File

@@ -72,7 +72,8 @@ 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]
return spl
tags = [f"{tag}: {elem}" for tag, elem in [x.split(":") for x in spl]]
return tags
def drilldown_search(request):