From 224c724cc0094ebc84a8f4fc4170549306d32e0f Mon Sep 17 00:00:00 2001 From: arianagiroux Date: Sun, 24 Jul 2022 14:34:08 -0600 Subject: [PATCH] Added more sophisticated flask usage to app.py - enables the user to simply execute the file to run the flask app --- app.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) mode change 100644 => 100755 app.py diff --git a/app.py b/app.py old mode 100644 new mode 100755 index 5e51b4f..c2894b5 --- a/app.py +++ b/app.py @@ -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()