From 5c4dd816f6cc2a88f57d94b6ddf06f9acdf3c751 Mon Sep 17 00:00:00 2001 From: Mylloon Date: Tue, 24 Aug 2021 10:45:22 +0200 Subject: [PATCH] better removal of linkParams for the CSV --- main.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/main.py b/main.py index e3123ea..0b2dd1b 100644 --- a/main.py +++ b/main.py @@ -90,7 +90,9 @@ def save(elements): return filename = "results.csv" with open(filename, "w") as f: - f.write(";".join(list(elements[0].keys())[:-1])) + topCSV = list(elements[0].keys()) # create a copy of the first element keys + topCSV.remove("linkParams") # remove linkParams + f.write(";".join(topCSV)) f.write("\n") for element in elements: if element != "linkParams":