diff --git a/main.py b/main.py index 513b7d8..07ca569 100644 --- a/main.py +++ b/main.py @@ -3,8 +3,8 @@ from twitch import TwitchClient from pprint import pprint import json -app = Flask(__name__) -app.config['DEBUG'] = True +application = Flask(__name__) +application.config['DEBUG'] = True try: @@ -23,10 +23,10 @@ def get_followed(): #for stream in streams_live: # print("%s: \t\t\t%s Logo is: %s" %(stream["channel"]["display_name"], stream["channel"]["game"],stream["channel"]["logo"])) -@app.route('/') +@application.route('/') def index(): livestreamdata = get_followed() return render_template('index.html', livestreamdata=livestreamdata) if __name__ == '__main__': - app.run(host='0.0.0.0') + application.run(host='0.0.0.0') diff --git a/static/js/custom.js b/static/js/custom.js index 8eba158..d2a644c 100644 --- a/static/js/custom.js +++ b/static/js/custom.js @@ -1,4 +1,4 @@ -var domain = "test.benjamyn-testing.com" +var domain = "http://test.benjamyn-testing.com" function loadContent() { var xhttp = new XMLHttpRequest(); xhttp.onreadystatechange = function() {