def _build_metadata(self, year, elections):
        meta = []
        year_int = int(year)
        for election in elections:
            if election['slug'] in 'special':
                results = [x for x in self._url_paths() if x['date'] == election['start_date'] and x['special'] == True]
                for result in results:
                    jurisdiction = 'ocd-division/country:us/state:nv'
                    generated_filename = self._generate_statewide_precinct_filename(result)
                    pre_processed_url = None
                    meta.append({
                        "generated_filename": generated_filename,
                        "raw_url": result['url'],
                        "pre_processed_url": None,
                        "ocd_id": jurisdiction,
                        "name": 'Nevada',
                        "election": election['slug']
                    })
            else:
                results = [x for x in self._url_paths() if x['date'] == election['start_date'] and x['special'] == False and x['precinct'] == '']
                for result in results:
                    if result['jurisdiction'] == '':
                        jurisdiction = 'ocd-division/country:us/state:nv'
                        generated_filename = self._generate_statewide_filename(result)
                        pre_processed_url = None
                    else:
                        jurisdiction = [c for c in self._jurisdictions() if c['jurisdiction'] == result['jurisdiction']][0]['ocd_id']
                        generated_filename = result['path']
                        pre_processed_url = build_raw_github_url(self.state, str(year), result['path'])
                    meta.append({
                        "generated_filename": generated_filename,
                        "raw_url": result['url'],
                        "pre_processed_url": pre_processed_url,
                        "ocd_id": jurisdiction,
                        "name": result['jurisdiction'],
                        "election": election['slug']
                    })
                results = [x for x in self._url_paths() if x['date'] == election['start_date'] and x['special'] == False and x['precinct'] != '']
                for result in results:
                    jurisdiction = 'ocd-division/country:us/state:nv'
                    generated_filename = self._generate_statewide_precinct_filename(result)
                    pre_processed_url = None
                    meta.append({
                        "generated_filename": generated_filename,
                        "raw_url": result['url'],
                        "pre_processed_url": pre_processed_url,
                        "ocd_id": jurisdiction,
                        "name": 'Nevada',
                        "election": election['slug']
                    })
        return meta
dataset/ETHPy150Open openelections/openelections-core/openelex/us/nv/datasource.py/Datasource._build_metadata/swapped operands of `in`