def Send(self, msg):
        """
        Add a note to the database on the server
        :param msg: The text of the note.
        :type msg: str
        :param tags: A list of tags to associate with the note.
        :type tags: list
        :returns: The message from the server
        :rtype: str
        """
        if 'type' not in msg:
            return

        self.sock.send(json.dumps(msg))
        msg = self.sock.recv()
        return msg
def Send ( self , msg ) : if 'type' not in msg : return self . sock . send ( json . dumps ( msg ) ) msg = self . sock . recv ( ) return msg
Add a note to the database on the server
        :param msg: The text of the note.
        :type msg: str
        :param tags: A list of tags to associate with the note.
        :type tags: list
        :returns: The message from the server
        :rtype: str