Fixed maintainance
This commit is contained in:
parent
932f33e372
commit
44340f20b0
1 changed files with 4 additions and 0 deletions
4
main.py
4
main.py
|
|
@ -19,6 +19,10 @@ async def start() -> Responses.StartResponse:
|
||||||
|
|
||||||
if Controllers.process.status() == ProcessStatus.RUNNING:
|
if Controllers.process.status() == ProcessStatus.RUNNING:
|
||||||
return {"status": "running"}
|
return {"status": "running"}
|
||||||
|
|
||||||
|
if Controllers.maintainance.is_set():
|
||||||
|
Controllers.maintainance.unset()
|
||||||
|
|
||||||
Controllers.process.start()
|
Controllers.process.start()
|
||||||
return {"status": "started"}
|
return {"status": "started"}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue