fix map datatype

This commit is contained in:
Camryn Thomas 2024-03-01 20:37:02 -06:00
parent 2c242aac29
commit 6edd0b4ef0
Signed by: cptlobster
GPG Key ID: 6D341D688163A176

View File

@ -236,7 +236,7 @@ def flatten(tables):
# if the item has at least two commas in it, split it # if the item has at least two commas in it, split it
if tables[table][key].count(',') >= 2: if tables[table][key].count(',') >= 2:
out[fullkeyname] = map(lambda x: x.strip(), tables[table][key].split(",")) out[fullkeyname] = list(map(lambda x: x.strip(), tables[table][key].split(",")))
print("\"" + keyname + "\":", "\"" + str(out[fullkeyname]) + "\",") print("\"" + keyname + "\":", "\"" + str(out[fullkeyname]) + "\",")