#NEWLINE# def _url_paths_metadata( self , election ) : #NEWLINE# #INDENT# meta_entries = [ ] #NEWLINE# url_paths = [ filename_kwargs for up in self . _url_paths_for_election ( election [ 'slug' ] ) if ( not ( up [ 'skip_loading' ] . lower ( ) == 'true' ) ) ] #NEWLINE# for path in url_paths : #NEWLINE# #INDENT# winners_file = ( path [ 'winners' ] . lower ( ) == 'true' ) #NEWLINE# if winners_file : #NEWLINE# #INDENT# continue #NEWLINE# #UNINDENT# filename_kwargs = { #NEWLINE# #INDENT# 'reporting_level' : path [ 'reporting_level' ] , #NEWLINE# 'extension' : self . _extension_from_url ( path [ 'url' ] ) , #NEWLINE# 'office' : path [ 'office' ] , #NEWLINE# 'office_district' : path [ 'district' ] , #NEWLINE# #UNINDENT# } #NEWLINE# if path [ 'jurisdiction' ] : #NEWLINE# #INDENT# filename_kwargs [ 'jurisdiction' ] = path [ 'jurisdiction' ] #NEWLINE# name = path [ 'jurisdiction' ] #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# name = 'Iowa' #NEWLINE# #UNINDENT# meta_entries . append ( { #NEWLINE# #INDENT# 'generated_filename' : self . _standardized_filename ( election , ** filename_kwargs ) , #NEWLINE# 'raw_url' : path [ 'url' ] , #NEWLINE# 'ocd_id' : 'ocd-division/country:us/state:ia' , #NEWLINE# 'name' : name , #NEWLINE# 'election' : election [ 'slug' ] , #NEWLINE# #UNINDENT# } ) #NEWLINE# #UNINDENT# return meta_entries