def _state_leg_meta(self, year, elections):
        payload = []
        meta = {
            'ocd_id': 'ocd-division/country:us/state:md/sldl:all',
            'name': 'State Legislative Districts',
        }

        general, primary, special = self._races_by_type(elections)

        # Add General meta to payload
        general_url = self._build_state_leg_url(year)
        general_filename = self._generate_state_leg_filename(general_url, general['start_date'])
        gen_meta = meta.copy()
        gen_meta.update({
            'raw_url': general_url,
            'generated_filename': general_filename,
            'election': general['slug']
        })
        payload.append(gen_meta)

        # Add Primary meta to payload
        if primary and 2000 > int(year):
            for party in ['Democratic', 'Republican']:
                pri_meta = meta.copy()
                primary_url = self._build_state_leg_url(year, party)
                primary_filename = self._generate_state_leg_filename(primary_url, primary['start_date'])
                pri_meta.update({
                    'raw_url': primary_url,
                    'generated_filename': primary_filename,
                    'election': primary['slug']
                })
                payload.append(pri_meta)
        return payload
dataset/ETHPy150Open openelections/openelections-core/openelex/us/md/datasource.py/Datasource._state_leg_meta/swapped operands of `>`