Fixed delete file endpoint
This commit is contained in:
parent
2ac70ddac6
commit
ed1f6a7475
1 changed files with 2 additions and 1 deletions
|
@ -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"])
|
||||
|
|
Loading…
Reference in a new issue