Commit 8e7bc2ea authored by Abhijith PA's avatar Abhijith PA
Browse files

issue

parent 5c1202c1
......@@ -91,10 +91,10 @@ class MUCBot(sleekxmpp.ClientXMPP):
@app.route('/',methods=['POST'])
def foo():
data = json.loads(request.data)
m1 = data["commits"][0]["message"]
#m2 = data["object_attributes"][0]["title"]
#m3 = data["object_attributes"][0]["url"]
message=m1 #," ",m2, " ",m3
#m1 = data["commits"][0]["message"]
m2 = data["object_attributes"][0]["title"]
m3 = data["object_attributes"][0]["url"]
message=m1," ",m2, " ",m3
#try:
self.send_message(mto=self.room,mbody=message,mtype='groupchat')
#except:
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment