Rename app to application as the uwsgi default

This commit is contained in:
Ben 2019-07-18 15:09:10 +02:00
parent 7d1766d3e2
commit 70e6cfad00
Signed by: ben
GPG Key ID: 0F54A7ED232D3319
1 changed files with 2 additions and 2 deletions

4
wmn.py
View File

@ -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: