[fix] a bug

This commit is contained in:
xtao-dada 2022-03-05 16:15:54 +08:00
parent 2a3c35a55c
commit eee79c4599
Signed by: xtaodada
GPG Key ID: 4CBB3F4FA8C85659

5
app.py
View File

@ -1,11 +1,14 @@
from aioflask import Flask
from aioflask import request
from aioflask import jsonify
from ci import app as bot
app = Flask(__name__)
@app.route("/", methods=['GET', 'POST'])
async def webhook(request):
async def webhook():
data = request.json
# json contains an attribute that differentiates between the types, see
# https://docs.gitlab.com/ce/user/project/integrations/webhooks.html