Fixed file insert
This commit is contained in:
parent
30efc2b405
commit
ee5de34647
1 changed files with 1 additions and 1 deletions
|
@ -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")
|
||||
|
|
Loading…
Reference in a new issue