Allow duplicate tag keys

This commit is contained in:
2022-09-30 07:22:22 +01:00
parent 8010ebf2c1
commit 835be7e001
2 changed files with 5 additions and 4 deletions

View File

@@ -60,14 +60,14 @@ def parse_tags(tags_pre):
"""
Parse the tags from the variable tags_pre.
"""
tags = {}
tags = []
tags_spl = tags_pre.split(",")
if tags_spl:
for tag in tags_spl:
tag = tag.split(": ")
if len(tag) == 2:
key, val = tag
tags[key] = val
tags.append({key: val})
return tags