civics-cdf-validator 1.51.dev1__tar.gz → 1.51.dev3__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {civics_cdf_validator-1.51.dev1/civics_cdf_validator.egg-info → civics_cdf_validator-1.51.dev3}/PKG-INFO +1 -1
- {civics_cdf_validator-1.51.dev1 → civics_cdf_validator-1.51.dev3/civics_cdf_validator.egg-info}/PKG-INFO +1 -1
- {civics_cdf_validator-1.51.dev1 → civics_cdf_validator-1.51.dev3}/rules.py +4 -4
- {civics_cdf_validator-1.51.dev1 → civics_cdf_validator-1.51.dev3}/version.py +1 -1
- {civics_cdf_validator-1.51.dev1 → civics_cdf_validator-1.51.dev3}/CONTRIBUTING.md +0 -0
- {civics_cdf_validator-1.51.dev1 → civics_cdf_validator-1.51.dev3}/LICENSE-2.0.txt +0 -0
- {civics_cdf_validator-1.51.dev1 → civics_cdf_validator-1.51.dev3}/MANIFEST.in +0 -0
- {civics_cdf_validator-1.51.dev1 → civics_cdf_validator-1.51.dev3}/README.md +0 -0
- {civics_cdf_validator-1.51.dev1 → civics_cdf_validator-1.51.dev3}/__init__.py +0 -0
- {civics_cdf_validator-1.51.dev1 → civics_cdf_validator-1.51.dev3}/base.py +0 -0
- {civics_cdf_validator-1.51.dev1 → civics_cdf_validator-1.51.dev3}/civics_cdf_validator.egg-info/SOURCES.txt +0 -0
- {civics_cdf_validator-1.51.dev1 → civics_cdf_validator-1.51.dev3}/civics_cdf_validator.egg-info/dependency_links.txt +0 -0
- {civics_cdf_validator-1.51.dev1 → civics_cdf_validator-1.51.dev3}/civics_cdf_validator.egg-info/entry_points.txt +0 -0
- {civics_cdf_validator-1.51.dev1 → civics_cdf_validator-1.51.dev3}/civics_cdf_validator.egg-info/requires.txt +0 -0
- {civics_cdf_validator-1.51.dev1 → civics_cdf_validator-1.51.dev3}/civics_cdf_validator.egg-info/top_level.txt +0 -0
- {civics_cdf_validator-1.51.dev1 → civics_cdf_validator-1.51.dev3}/gpunit_rules.py +0 -0
- {civics_cdf_validator-1.51.dev1 → civics_cdf_validator-1.51.dev3}/loggers.py +0 -0
- {civics_cdf_validator-1.51.dev1 → civics_cdf_validator-1.51.dev3}/office_utils.py +0 -0
- {civics_cdf_validator-1.51.dev1 → civics_cdf_validator-1.51.dev3}/setup.cfg +0 -0
- {civics_cdf_validator-1.51.dev1 → civics_cdf_validator-1.51.dev3}/setup.py +0 -0
- {civics_cdf_validator-1.51.dev1 → civics_cdf_validator-1.51.dev3}/stats.py +0 -0
- {civics_cdf_validator-1.51.dev1 → civics_cdf_validator-1.51.dev3}/validator.py +0 -0
|
@@ -98,7 +98,7 @@ _VALID_OFFICE_ROLE_COMBINATIONS = frozenset([
|
|
|
98
98
|
|
|
99
99
|
def _get_office_roles(element, is_post_office_split_feed=False):
|
|
100
100
|
if is_post_office_split_feed:
|
|
101
|
-
return [element.text for element in element.findall("
|
|
101
|
+
return [element.text for element in element.findall("Role")]
|
|
102
102
|
return get_entity_info_for_value_type(element, "office-role")
|
|
103
103
|
|
|
104
104
|
|
|
@@ -4376,9 +4376,9 @@ class FeedHasValidCountryCode(base.BaseRule):
|
|
|
4376
4376
|
)
|
|
4377
4377
|
else:
|
|
4378
4378
|
feed_type = element.find("FeedType")
|
|
4379
|
-
if (
|
|
4380
|
-
|
|
4381
|
-
|
|
4379
|
+
if element_has_text(feed_type) and (
|
|
4380
|
+
feed_type.text.lower().replace("_", "-") == "election-dates"
|
|
4381
|
+
or feed_type.text.lower().replace("_", "-") == "voter-information"
|
|
4382
4382
|
):
|
|
4383
4383
|
return
|
|
4384
4384
|
raise loggers.ElectionError.from_message(
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|