Example #1
0
def match():
    data = request.args.to_dict()
    matchunmatch = MatchUnmatch(data, app)
    result = matchunmatch.match()
    if result:
        socketio.emit("FMnotific", {"data": {"FMnotific": True}}, room=str(data["authorid"]))
    return jsonify({"data": result})
Example #2
0
def unmatch():
    print '---------match-----------'
    data = (request.args.to_dict())
    matchunmatch = MatchUnmatch(data, app)
    result = matchunmatch.unMatch()
    print '-------unmatch result-----'
    print result
    return jsonify({'data':result})
Example #3
0
def match():
    data = (request.args.to_dict())
    matchunmatch = MatchUnmatch(data, app)
    result = matchunmatch.match()
    if result:
        socketio.emit('FMnotific', {'data': {
            'FMnotific': True
        }},
                      room=str(data['authorid']))
    return jsonify({'data': result})
Example #4
0
def unmatch():
    data = request.args.to_dict()
    matchunmatch = MatchUnmatch(data, app)
    result = matchunmatch.unMatch()
    return jsonify({"data": result})
Example #5
0
def unmatch():
    data = (request.args.to_dict())
    matchunmatch = MatchUnmatch(data, app)
    result = matchunmatch.unMatch()
    return jsonify({'data': result})