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:
Ariana Giroux 2022-07-24 14:34:08 -06:00
parent 517c1b071d
commit 224c724cc0
1 changed files with 3 additions and 1 deletions

4
app.py Normal file → Executable file
View File

@ -50,6 +50,7 @@ else:
session = requests.Session()
session.auth = ('admin', stream_data['stream_key'])
# initialize flask app
app = Flask(__name__)
@ -111,4 +112,5 @@ def index():
return render(json.loads(getServerStatus()))
print(getServerStatus()[1])
if __name__ == '__main__':
app.run()