def closed(self):
        """ True if ticket was closed in given time frame """
        for who, what, old, new in self.history():
            if what == "status" and new == "closed":
                return True
        return False
def closed ( self ) : for who , what , old , new in self . history ( ) : if what == "status" and new == "closed" : return True return False
True if ticket was closed in given time frame