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 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})