def postcomment(): # pdb.set_trace() comment_param2 = request.json["comment"] uname_param1 = request.json["username"] uuid_param3 = request.json["uuid_data"] py_mongo.saveComment(uname_param1, comment_param2, uuid_param3) py_mongo.retrieveComments(uuid_param3)
def getComments(): uuid_param1 = request.json["uuid_data"] records = py_mongo.retrieveComments(uuid_param1) return json.dumps(records)