Allow duplicate tag keys
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user