def insert_history(self, msgs):
        # TODO Support Media Msgs
        values = [[msg.id, msg.date, msg.src.id, msg.src.username or '',
                   "{0} {1}".format(msg.src.first_name or '', msg.src.last_name or ''),
                   msg.dest.id, msg.text] for msg in msgs if hasattr(msg, 'text') and [msg.src, msg.dest] not in None]
        columns = ['msg_id', 'timestamp', 'uid', 'username', 'full_name', 'chat_id', 'message']

        self.insert_many(columns, values)
dataset/ETHPy150Open datamachine/telex/plugins/chatlog.py/ChatLogPlugin.insert_history/swapped operands of `not in`