From 918a0fa04ceb1fe02a4a5bdfc8292e9d3d892431 Mon Sep 17 00:00:00 2001 From: Maximilian Giller Date: Thu, 2 May 2024 17:40:11 +0200 Subject: [PATCH] Fixed bettwaage csv insert --- src/endpoints/bettwaage.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/endpoints/bettwaage.py b/src/endpoints/bettwaage.py index e79596c..02781f5 100644 --- a/src/endpoints/bettwaage.py +++ b/src/endpoints/bettwaage.py @@ -12,7 +12,7 @@ file_path = "bettwaage.csv" def add_line_to_history(line: str) -> None: with open(file_path, "+a", encoding="UTF-8") as fp: - fp.write(f"{line}\n") + fp.write(line) @router.get("/file")