Rename app to application as the uwsgi default
This commit is contained in:
parent
7d1766d3e2
commit
70e6cfad00
4
wmn.py
4
wmn.py
|
@ -2,7 +2,7 @@ import yaml
|
||||||
from flask import Flask, request, abort
|
from flask import Flask, request, abort
|
||||||
from matrix_client.client import MatrixClient
|
from matrix_client.client import MatrixClient
|
||||||
|
|
||||||
app = Flask(__name__)
|
application = Flask(__name__)
|
||||||
|
|
||||||
"""
|
"""
|
||||||
config.yml Example:
|
config.yml Example:
|
||||||
|
@ -17,7 +17,7 @@ with open("config.yml", 'r') as ymlfile:
|
||||||
cfg = yaml.safe_load(ymlfile)
|
cfg = yaml.safe_load(ymlfile)
|
||||||
|
|
||||||
|
|
||||||
@app.route('/matrix')
|
@application.route('/matrix')
|
||||||
def notify():
|
def notify():
|
||||||
channel = request.args.get('channel')
|
channel = request.args.get('channel')
|
||||||
if channel is None or len(channel) == 0:
|
if channel is None or len(channel) == 0:
|
||||||
|
|
Loading…
Reference in New Issue