def received_infos(self, type=None, failed=None):
if failed is not None:<EOL><INDENT>raise ValueError(<EOL>"<STR_LIT>"<EOL>"<STR_LIT>"<EOL>"<STR_LIT>"<EOL>"<STR_LIT>"<EOL>"<STR_LIT>"<EOL>"<STR_LIT>"<EOL>"<STR_LIT>"<EOL>"<STR_LIT>"<EOL>)<EOL><DEDENT>if type is None:<EOL><INDENT>type = Info<EOL><DEDENT>if not issubclass(type, Info):<EOL><INDENT>raise TypeError(<EOL>"<STR_LIT>" "<STR_LIT>".format(type)<EOL>)<EOL><DEDENT>transmissions = (<EOL>Transmission.query.with_entities(Transmission.info_id)<EOL>.filter_by(destination_id=self.id, status="<STR_LIT>", failed=False)<EOL>.all()<EOL>)<EOL>info_ids = [t.info_id for t in transmissions]<EOL>if info_ids:<EOL><INDENT>return type.query.filter(type.id.in_(info_ids)).all()<EOL><DEDENT>else:<EOL><INDENT>return []<EOL><DEDENT>
Get infos that have been sent to this node.

        Type must be a subclass of info, the default is Info.