#NEWLINE# def initializeBatch( self , rssObject ) : #NEWLINE# #INDENT# results = self . execute ( 'SELECT filing_number, accepted_timestamp FROM filing' ) #NEWLINE# existingFilings = dict ( ( ( filingNumber , timestamp ) for ( filingNumber , timestamp ) in results ) ) #NEWLINE# for rssItem in rssObject . rssItems : #NEWLINE# #INDENT# if ( ( rssItem . accessionNumber in existingFilings ) and ( rssItem . acceptanceDatetime == existingFilings [ rssItem . accessionNumber ] ) ) : #NEWLINE# #INDENT# rssItem . skipRssItem = True