Hopefully fixed write endpoint

This commit is contained in:
Maximilian Giller 2024-05-02 18:16:39 +02:00
parent cc8eb0c2a3
commit 2ac70ddac6

View file

@ -16,8 +16,8 @@ scale_values = [1, 1, 1, 1]
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(line) fp.write(line + "\n")
def convert_to_weight(value: int, zero_value: int, scale: float) -> float: def convert_to_weight(value: int, zero_value: int, scale: float) -> float: