#NEWLINE# def _get_last_lobbyist_represent_data( self , data ) : #NEWLINE# #INDENT# try : #NEWLINE# #INDENT# last_lobbyist_represent_data = LobbyistRepresentData . objects . filter ( scrape_time__isnull = False ) . latest ( 'scrape_time' ) #NEWLINE# #UNINDENT# except ObjectDoesNotExist : #NEWLINE# #INDENT# last_lobbyist_represent_data = None #NEWLINE# #UNINDENT# if ( last_lobbyist_represent_data is not None ) : #NEWLINE# #INDENT# for key in [ 'name' , 'domain' , 'type' ] : #NEWLINE# #INDENT# if ( data [ key ] != getattr ( last_lobbyist_represent_data , data ) ) : #NEWLINE# #INDENT# last_lobbyist_represent_data = None #NEWLINE# break #NEWLINE# #UNINDENT# #UNINDENT# #UNINDENT# return last_lobbyist_represent_data