Fixed delete file endpoint

This commit is contained in:
Maximilian Giller 2024-05-02 18:17:42 +02:00
parent 2ac70ddac6
commit ed1f6a7475

View file

@ -90,7 +90,8 @@ async def get_latest():
@router.delete("/delete", tags=["file"])
async def delete_file():
os.remove(file_path)
return "Deleted file"
add_line_to_history("timestamp;tl;tr;bl;br;total;")
return "Deleted file and created new file with headers"
@router.post("/zero", tags=["calibration"])