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