def transmissions(self, status="all"):
        """Get transmissions sent along this Vector.

        Status can be "all" (the default), "pending", or "received".
        """
        if status not in ["all", "pending", "received"]:
            raise(ValueError("You cannot get {} transmissions."
                             .format(status) +
                             "Status can only be pending, received or all"))

        if status == "all":
            return Transmission\
                .query\
                .filter_by(vector_id=self.id,
                           failed=False)\
                .all()
        else:
            return Transmission\
                .query\
                .filter_by(vector_id=self.id,
                           status=status,
                           failed=False)\
                .all()
def transmissions ( self , status = "all" ) : if status not in [ "all" , "pending" , "received" ] : raise ( ValueError ( "You cannot get {} transmissions." . format ( status ) + "Status can only be pending, received or all" ) ) if status == "all" : return Transmission . query . filter_by ( vector_id = self . id , failed = False ) . all ( ) else : return Transmission . query . filter_by ( vector_id = self . id , status = status , failed = False ) . all ( )
Get transmissions sent along this Vector.

        Status can be "all" (the default), "pending", or "received".