From ac9e9e76b1fb402d927a8509b0c714d84382bcaa Mon Sep 17 00:00:00 2001 From: Niclas Dobbertin Date: Wed, 4 Oct 2023 12:45:35 +0200 Subject: use unix line endings to fix windows bug --- bjoern/videoanalyse/LogParser.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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) -- cgit v1.2.3