Skip to content
Snippets Groups Projects
Commit 414ea904 authored by Maximilian Gruber's avatar Maximilian Gruber
Browse files

add status reset option

parent 277420fe
No related branches found
No related tags found
No related merge requests found
......@@ -186,6 +186,19 @@ def custom_swagger_ui_html():
)
########################################################################################
######### maintenance access ###########################################################
########################################################################################
@app.get("/maintenance/reset_states")
def reset_states(db: Session = Depends(get_db)):
crud.set_status(db, name="general", state="ready")
crud.set_status(db, name="microphone", state="ready")
crud.set_status(db, name="speaker", state="ready")
db.commit()
return status(db)
@app.get("/maintenance/check_systems")
def check_systems(db: Session = Depends(get_db)):
# toggle (dummy)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment