civics-cdf-validator 1.59.dev0__tar.gz → 1.59.dev2__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.59.dev0/civics_cdf_validator.egg-info → civics_cdf_validator-1.59.dev2}/PKG-INFO +1 -1
- {civics_cdf_validator-1.59.dev0 → civics_cdf_validator-1.59.dev2/civics_cdf_validator.egg-info}/PKG-INFO +1 -1
- {civics_cdf_validator-1.59.dev0 → civics_cdf_validator-1.59.dev2}/rules.py +5 -5
- {civics_cdf_validator-1.59.dev0 → civics_cdf_validator-1.59.dev2}/version.py +1 -1
- {civics_cdf_validator-1.59.dev0 → civics_cdf_validator-1.59.dev2}/CONTRIBUTING.md +0 -0
- {civics_cdf_validator-1.59.dev0 → civics_cdf_validator-1.59.dev2}/LICENSE-2.0.txt +0 -0
- {civics_cdf_validator-1.59.dev0 → civics_cdf_validator-1.59.dev2}/MANIFEST.in +0 -0
- {civics_cdf_validator-1.59.dev0 → civics_cdf_validator-1.59.dev2}/README.md +0 -0
- {civics_cdf_validator-1.59.dev0 → civics_cdf_validator-1.59.dev2}/__init__.py +0 -0
- {civics_cdf_validator-1.59.dev0 → civics_cdf_validator-1.59.dev2}/base.py +0 -0
- {civics_cdf_validator-1.59.dev0 → civics_cdf_validator-1.59.dev2}/civics_cdf_validator.egg-info/SOURCES.txt +0 -0
- {civics_cdf_validator-1.59.dev0 → civics_cdf_validator-1.59.dev2}/civics_cdf_validator.egg-info/dependency_links.txt +0 -0
- {civics_cdf_validator-1.59.dev0 → civics_cdf_validator-1.59.dev2}/civics_cdf_validator.egg-info/entry_points.txt +0 -0
- {civics_cdf_validator-1.59.dev0 → civics_cdf_validator-1.59.dev2}/civics_cdf_validator.egg-info/requires.txt +0 -0
- {civics_cdf_validator-1.59.dev0 → civics_cdf_validator-1.59.dev2}/civics_cdf_validator.egg-info/top_level.txt +0 -0
- {civics_cdf_validator-1.59.dev0 → civics_cdf_validator-1.59.dev2}/gpunit_rules.py +0 -0
- {civics_cdf_validator-1.59.dev0 → civics_cdf_validator-1.59.dev2}/loggers.py +0 -0
- {civics_cdf_validator-1.59.dev0 → civics_cdf_validator-1.59.dev2}/office_utils.py +0 -0
- {civics_cdf_validator-1.59.dev0 → civics_cdf_validator-1.59.dev2}/setup.cfg +0 -0
- {civics_cdf_validator-1.59.dev0 → civics_cdf_validator-1.59.dev2}/setup.py +0 -0
- {civics_cdf_validator-1.59.dev0 → civics_cdf_validator-1.59.dev2}/stats.py +0 -0
- {civics_cdf_validator-1.59.dev0 → civics_cdf_validator-1.59.dev2}/validator.py +0 -0
|
@@ -97,7 +97,7 @@ _EXECUTIVE_OFFICE_ROLES = frozenset([
|
|
|
97
97
|
_VALID_FEED_LONGEVITY_BY_FEED_TYPE = frozendict({
|
|
98
98
|
"committee": ["evergreen"],
|
|
99
99
|
"election-dates": ["evergreen"],
|
|
100
|
-
"election-results": ["limited"
|
|
100
|
+
"election-results": ["limited"],
|
|
101
101
|
"officeholder": ["evergreen"],
|
|
102
102
|
"pre-election": ["limited", "yearly"],
|
|
103
103
|
})
|
|
@@ -2155,19 +2155,19 @@ class VoteCountValidSeatsDeltaTypes(base.BaseRule):
|
|
|
2155
2155
|
raise loggers.ElectionError.from_message(msg, [element])
|
|
2156
2156
|
if "seats-delta" in ballot_selection_vote_types:
|
|
2157
2157
|
current_date = datetime.datetime.now()
|
|
2158
|
-
deletion_date = datetime.datetime(2026,
|
|
2159
|
-
# If current date is before
|
|
2158
|
+
deletion_date = datetime.datetime(2026, 7, 1)
|
|
2159
|
+
# If current date is before July 1st, 2026
|
|
2160
2160
|
if current_date < deletion_date:
|
|
2161
2161
|
msg = (
|
|
2162
2162
|
"VoteCount type seats-delta is deprecated and will be removed"
|
|
2163
|
-
" on
|
|
2163
|
+
" on July 1, 2026. Please update your implementation to use"
|
|
2164
2164
|
" seats-delta-mandate. (BallotSelection objectId={})"
|
|
2165
2165
|
).format(ballot_selection_obj_id)
|
|
2166
2166
|
raise loggers.ElectionWarning.from_message(msg, [element])
|
|
2167
2167
|
else:
|
|
2168
2168
|
msg = (
|
|
2169
2169
|
"VoteCount type seats-delta is deprecated and was removed on"
|
|
2170
|
-
"
|
|
2170
|
+
" July 1, 2026. Please update your implementation to use"
|
|
2171
2171
|
" seats-delta-mandate. (BallotSelection objectId={})"
|
|
2172
2172
|
).format(ballot_selection_obj_id)
|
|
2173
2173
|
raise loggers.ElectionError.from_message(msg, [element])
|
|
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
|