Skip to content

Commit

Permalink
Update references to current-federal.csv headers with correct capital…
Browse files Browse the repository at this point in the history
…ization

There were some recent capitalization changes in
https://github.com/cisagov/dotgov-data/blob/main/current-federal.csv,
so we must update our code to match.
  • Loading branch information
jsf9k committed Jan 31, 2024
1 parent 04e233c commit 7433c58
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/create_sld_to_agency_name_and_id_mapping.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ def main():
with open(CURRENT_FEDERAL_FILE, newline="") as current_federal_file:
csvreader = csv.DictReader(current_federal_file)
for row in csvreader:
domain = row["Domain Name"].lower()
domain = row["Domain name"].lower()
agency = (
row["Agency"]
.replace("&", "and")
Expand Down
2 changes: 1 addition & 1 deletion src/pshtt_csv2mongo.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ def open_csv_files():
clean_federal = []
unique = set()
for row in csv.DictReader(current_federal):
domain = row["Domain Name"]
domain = row["Domain name"]
agency = (
row["Agency"]
.replace("&", "and")
Expand Down
2 changes: 1 addition & 1 deletion src/sslyze_csv2mongo.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ def open_csv_files():
clean_federal = []
unique = set()
for row in csv.DictReader(current_federal):
domain = row["Domain Name"]
domain = row["Domain name"]
agency = (
row["Agency"]
.replace("&", "and")
Expand Down
2 changes: 1 addition & 1 deletion src/trustymail_csv2mongo.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ def open_csv_files():
clean_federal = []
unique = set()
for row in csv.DictReader(current_federal):
domain = row["Domain Name"]
domain = row["Domain name"]
agency = (
row["Agency"]
.replace("&", "and")
Expand Down

0 comments on commit 7433c58

Please sign in to comment.