#NEWLINE# def find_files( job ) : #NEWLINE# #INDENT# current = job . curr_max_version . version_int #NEWLINE# target = job . target_version . version_int #NEWLINE# addons = Addon . objects . filter ( status__in = amo . VALID_STATUSES , disabled_by_user = False , versions__apps__application = job . application , versions__apps__max__version_int__gte = current , versions__apps__max__version_int__lt = target ) . exclude ( type__in = [ amo . ADDON_LPAPP , amo . ADDON_THEME ] ) . exclude ( versions__files__is_webextension = True ) . no_transforms ( ) . values_list ( 'pk' , flat = True ) . distinct ( ) #NEWLINE# for pks in chunked ( pks , 100 ) : #NEWLINE# #INDENT# tasks . add_validation_jobs . delay ( pks , job . pk )