Fixed bettwaage csv insert

This commit is contained in:
Maximilian Giller 2024-05-02 17:40:11 +02:00
parent ee5de34647
commit 918a0fa04c

View file

@ -12,7 +12,7 @@ file_path = "bettwaage.csv"
def add_line_to_history(line: str) -> None: def add_line_to_history(line: str) -> None:
with open(file_path, "+a", encoding="UTF-8") as fp: with open(file_path, "+a", encoding="UTF-8") as fp:
fp.write(f"{line}\n") fp.write(line)
@router.get("/file") @router.get("/file")