Fixed file insert

This commit is contained in:
Maximilian Giller 2024-05-02 17:39:06 +02:00
parent 30efc2b405
commit ee5de34647

View file

@ -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.writelines([line])
fp.write(f"{line}\n")
@router.get("/file")