From 6edd0b4ef0f888074ea58c3c5314d5e49eb2994c Mon Sep 17 00:00:00 2001 From: Dustin Thomas Date: Fri, 1 Mar 2024 20:37:02 -0600 Subject: [PATCH] fix map datatype --- read_datasheet.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/read_datasheet.py b/read_datasheet.py index f19d30f..d22a51c 100755 --- a/read_datasheet.py +++ b/read_datasheet.py @@ -236,7 +236,7 @@ def flatten(tables): # if the item has at least two commas in it, split it 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]) + "\",")