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})
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})
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})
def unmatch(): data = request.args.to_dict() matchunmatch = MatchUnmatch(data, app) result = matchunmatch.unMatch() return jsonify({"data": result})
def unmatch(): data = (request.args.to_dict()) matchunmatch = MatchUnmatch(data, app) result = matchunmatch.unMatch() return jsonify({'data': result})