Added more sophisticated flask usage to app.py
- enables the user to simply execute the file to run the flask app
This commit is contained in:
parent
517c1b071d
commit
224c724cc0
|
@ -50,6 +50,7 @@ else:
|
||||||
session = requests.Session()
|
session = requests.Session()
|
||||||
session.auth = ('admin', stream_data['stream_key'])
|
session.auth = ('admin', stream_data['stream_key'])
|
||||||
|
|
||||||
|
# initialize flask app
|
||||||
app = Flask(__name__)
|
app = Flask(__name__)
|
||||||
|
|
||||||
|
|
||||||
|
@ -111,4 +112,5 @@ def index():
|
||||||
return render(json.loads(getServerStatus()))
|
return render(json.loads(getServerStatus()))
|
||||||
|
|
||||||
|
|
||||||
print(getServerStatus()[1])
|
if __name__ == '__main__':
|
||||||
|
app.run()
|
||||||
|
|
Loading…
Reference in New Issue