From 07fe36570982d03cac7cf48a6905d7eefb9a008a Mon Sep 17 00:00:00 2001 From: Maximilian Giller Date: Thu, 2 May 2024 17:36:34 +0200 Subject: [PATCH] Fixed format string --- src/endpoints/bettwaage.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/endpoints/bettwaage.py b/src/endpoints/bettwaage.py index 4975b53..b0b7a39 100644 --- a/src/endpoints/bettwaage.py +++ b/src/endpoints/bettwaage.py @@ -24,7 +24,7 @@ async def get_file(): @router.post("/add") async def add_weight(tl: int, tr: int, bl: int, br: int): sum = tl + tr + bl + br - add_line_to_history(f"{str(datetime.now())};{";".join([tl, tr, bl, br, sum])};") + add_line_to_history(f"{str(datetime.now())};{';'.join([tl, tr, bl, br, sum])};") if not exists(file_path):