Update main.py
This commit is contained in:
parent
2f35ed98b6
commit
f4ed00581a
|
|
@ -22,10 +22,10 @@ def index():
|
||||||
def test():
|
def test():
|
||||||
global playing, p
|
global playing, p
|
||||||
if playing:
|
if playing:
|
||||||
return 200
|
|
||||||
else:
|
|
||||||
playing = False
|
playing = False
|
||||||
p.stop()
|
p.stop()
|
||||||
|
return 200
|
||||||
|
else:
|
||||||
return 406
|
return 406
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue