diff options
author | Niclas Dobbertin <niclas.dobbertin@stud.tu-darmstadt.de> | 2023-10-04 12:45:35 +0200 |
---|---|---|
committer | Niclas Dobbertin <niclas.dobbertin@stud.tu-darmstadt.de> | 2023-10-04 12:45:35 +0200 |
commit | ac9e9e76b1fb402d927a8509b0c714d84382bcaa (patch) | |
tree | 6d6226ca5778a14c6a430b9c8c40365995c82fe4 /bjoern/videoanalyse | |
parent | 791eb3ee3f0e3e9d5ba1225eb6feed41915e035b (diff) |
use unix line endings to fix windows bug
Diffstat (limited to 'bjoern/videoanalyse')
-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) |