summaryrefslogtreecommitdiff
path: root/bjoern/videoanalyse
diff options
context:
space:
mode:
authorNiclas Dobbertin <niclas.dobbertin@stud.tu-darmstadt.de>2023-10-04 12:49:14 +0200
committerNiclas Dobbertin <niclas.dobbertin@stud.tu-darmstadt.de>2023-10-04 12:49:14 +0200
commitecddc6332c7c526b5dbf772e53fcacf68dd5b866 (patch)
tree947fceb6aa5975bac2ba522d21b1799a9f63e98c /bjoern/videoanalyse
parent482e0742910da7089032f7b3cb85cf6752f4dfa9 (diff)
csv filewrite to documentation
Diffstat (limited to 'bjoern/videoanalyse')
-rwxr-xr-xbjoern/videoanalyse/LogParser.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/bjoern/videoanalyse/LogParser.py b/bjoern/videoanalyse/LogParser.py
index 0633fd8..b41804d 100755
--- a/bjoern/videoanalyse/LogParser.py
+++ b/bjoern/videoanalyse/LogParser.py
@@ -117,7 +117,7 @@ def generate_log(activities: dict):
def write_logfile(vp_dir, log):
path = Path(f"{vp_dir}/logs.csv")
- with open(path, "w") as csvfile:
+ with open(path, "w", newline="") as csvfile:
writer = csv.writer(
csvfile, delimiter=",", quoting=csv.QUOTE_NONNUMERIC, lineterminator="\n"
)