Fixed format string

This commit is contained in:
Maximilian Giller 2024-05-02 17:38:10 +02:00
parent 07fe365709
commit 30efc2b405

View file

@ -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())};{tl};{tr};{bl};{br};{sum};")
if not exists(file_path):