diff --git a/src/endpoints/bettwaage.py b/src/endpoints/bettwaage.py index 1381ff2..dfd5141 100644 --- a/src/endpoints/bettwaage.py +++ b/src/endpoints/bettwaage.py @@ -16,8 +16,8 @@ scale_values = [1, 1, 1, 1] def add_line_to_history(line: str) -> None: - with open(file_path, "+a", encoding="UTF-8") as fp: - fp.write(line) + with open(file_path, "a", encoding="UTF-8") as fp: + fp.write(line + "\n") def convert_to_weight(value: int, zero_value: int, scale: float) -> float: