예제 #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})
예제 #2
0
파일: server.py 프로젝트: satyanani40/nmc
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})
예제 #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})
예제 #4
0
def unmatch():
    data = request.args.to_dict()
    matchunmatch = MatchUnmatch(data, app)
    result = matchunmatch.unMatch()
    return jsonify({"data": result})
예제 #5
0
def unmatch():
    data = (request.args.to_dict())
    matchunmatch = MatchUnmatch(data, app)
    result = matchunmatch.unMatch()
    return jsonify({'data': result})