def _ticket_tuple(ticket):
 attempts = ticket.getAttempt()
 date = ticket.getTime()
 ip = ticket.getIP()
 matches = ticket.getMatches()
 return (ip, attempts, date, matches)

def _ticket_tuple ( ticket ) : attempts = ticket . getAttempt ( ) date = ticket . getTime ( ) ip = ticket . getIP ( ) matches = ticket . getMatches ( ) return ( ip , attempts , date , matches )
create a tuple for easy comparison from fail ticket .