Skip to content

Commit

Permalink
Bugfix for Michigan new history files PR (#196)
Browse files Browse the repository at this point in the history
  • Loading branch information
cvcotton authored Dec 9, 2024
1 parent b0dd199 commit c783e18
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions reggie/ingestion/preprocessor/michigan_preprocessor.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ def execute(self):
or "Entire State Voter History" in n["name"]
]
+ [None]
)
)[:-1]
elec_codes = (
[n for n in new_files if "electionscd" in n["name"]] + [None]
)[0]
Expand Down Expand Up @@ -170,9 +170,9 @@ def fill_empty_columns(df):
vdf = vdf.reindex(columns=self.config["ordered_columns"])
vdf[self.config["party_identifier"]] = "npa"

hdf = pd.DataFrame()
for hist_file in hist_files:
logging.info("Loading history file: " + hist_file["name"])
hdf = pd.DataFrame()
if hist_file["name"][-3:] == "lst":
hcolspecs = [
[0, 13],
Expand Down

0 comments on commit c783e18

Please sign in to comment.