From 70e6cfad00e6ba990cb7c501dd70b533c73ca68f Mon Sep 17 00:00:00 2001 From: Benedikt Ziemons Date: Thu, 18 Jul 2019 15:09:10 +0200 Subject: [PATCH] Rename app to application as the uwsgi default --- wmn.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/wmn.py b/wmn.py index de7c064..e00eb9b 100644 --- a/wmn.py +++ b/wmn.py @@ -2,7 +2,7 @@ import yaml from flask import Flask, request, abort from matrix_client.client import MatrixClient -app = Flask(__name__) +application = Flask(__name__) """ config.yml Example: @@ -17,7 +17,7 @@ with open("config.yml", 'r') as ymlfile: cfg = yaml.safe_load(ymlfile) -@app.route('/matrix') +@application.route('/matrix') def notify(): channel = request.args.get('channel') if channel is None or len(channel) == 0: