def _generate_county_filename(self, url, start_date, jurisdiction):
        bits = [
            start_date.replace('-',''),
            self.state,
        ]
        matches = self._apply_party_racetype_regex(url)
        if matches['party']:
            bits.append(matches['party'].lower())
        bits.extend([
            matches['race_type'].lower(),
            jurisdiction['url_name'].lower()
        ])
        if url.lower() in 'by_precinct':
            bits.append('precinct')
        filename = "__".join(bits) + '.csv'
        return filename
dataset/ETHPy150Open openelections/openelections-core/openelex/us/md/datasource.py/Datasource._generate_county_filename/swapped operands of `in`