diff options
-rwxr-xr-x | bjoern/videoanalyse/LogParser.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/bjoern/videoanalyse/LogParser.py b/bjoern/videoanalyse/LogParser.py index c314de7..d31575e 100755 --- a/bjoern/videoanalyse/LogParser.py +++ b/bjoern/videoanalyse/LogParser.py @@ -119,7 +119,9 @@ def generate_log(activities: dict): def write_logfile(vp_dir, log): path = Path(f"{vp_dir}/logs.csv") with open(path, "w") as csvfile: - writer = csv.writer(csvfile, delimiter=",", quoting=csv.QUOTE_NONNUMERIC) + writer = csv.writer( + csvfile, delimiter=",", quoting=csv.QUOTE_NONNUMERIC, lineterminator="\n" + ) writer.writerow(["Starttime", "Endtime", "Title", "URL"]) for row in log: writer.writerow(row) |