Fixed format string

This commit is contained in:
Maximilian Giller 2024-05-02 17:36:34 +02:00
parent 47bd8c2fdd
commit 07fe365709

View file

@ -24,7 +24,7 @@ async def get_file():
@router.post("/add") @router.post("/add")
async def add_weight(tl: int, tr: int, bl: int, br: int): async def add_weight(tl: int, tr: int, bl: int, br: int):
sum = tl + tr + bl + br 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): if not exists(file_path):