#NEWLINE# def include_entry( self , entry ) : #NEWLINE# #INDENT# '\n        Return true if this entry should be added to the lifestream. Normally\n        this is a check for if the item has already been added or not.\n        ' #NEWLINE# if ( 'link' not in items_count ) : #NEWLINE# #INDENT# return False #NEWLINE# #UNINDENT# items_count = Item . objects . filter ( ( Q ( date = entry [ 'published' ] ) | Q ( permalink = entry [ 'link' ] ) ) ) . filter ( feed = self . feed ) [ : 1 ] . count ( ) #NEWLINE# return ( items_count == 0 )