summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNiclas Dobbertin <niclas.dobbertin@stud.tu-darmstadt.de>2023-10-04 12:45:35 +0200
committerNiclas Dobbertin <niclas.dobbertin@stud.tu-darmstadt.de>2023-10-04 12:45:35 +0200
commitac9e9e76b1fb402d927a8509b0c714d84382bcaa (patch)
tree6d6226ca5778a14c6a430b9c8c40365995c82fe4
parent791eb3ee3f0e3e9d5ba1225eb6feed41915e035b (diff)
use unix line endings to fix windows bug
-rwxr-xr-xbjoern/videoanalyse/LogParser.py4
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)