Commit ceed1098 authored by Abhijith PA's avatar Abhijith PA
Browse files

cleans

parent b9f364e8
......@@ -82,12 +82,12 @@ class MUCBot(sleekxmpp.ClientXMPP):
@app.route('/',methods=['POST'])
def foo():
data = json.loads(request.data)
message="null"
#message="null"
m1 = data["user"]["username"]
m2 = data["object_attributes"]["title"]
m3 = data["object_attributes"]["url"]
#m4 = data["object_attributes"]["note"]
m5 = data["issue"]["title"]
#m5 = data["issue"]["title"]
#if "issue" == data["object_kind"]:
message=m1 + "created a new issue: " + m2 + " " + m3
# else:
......
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