Skip to content

Commit 44473f2

Browse files
committed
Update referenced CSV fields
In cisagov/dotgov-data#114 the headers for the `current-federal.csv` file were changed. This updates the script used in this Docker configuration to use the updated header field values.
1 parent 7fbe478 commit 44473f2

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/vdp_scanner.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -164,14 +164,14 @@ def check_for_vdp(self, domain: str) -> Tuple[str, bool, bool, str]:
164164
def process_domain(self, domain_info: Dict[str, Any]) -> None:
165165
"""Process a domain entry from the DotGov CSV."""
166166
# These are direct copies from current-federal.csv
167-
vdp_result = self.check_for_vdp(domain_info["Domain Name"])
167+
vdp_result = self.check_for_vdp(domain_info["Domain name"])
168168

169169
self.add_domain_result(
170170
DomainResult(
171-
domain_info["Domain Name"],
171+
domain_info["Domain name"],
172172
domain_info["Agency"],
173-
domain_info["Organization"],
174-
domain_info["Security Contact Email"],
173+
domain_info["Organization name"],
174+
domain_info["Security contact email"],
175175
*vdp_result,
176176
)
177177
)
@@ -306,10 +306,10 @@ def main():
306306

307307
total_domains = len(domains_to_scan)
308308
for i, domain_info in enumerate(
309-
sorted(domains_to_scan, key=lambda d: d["Domain Name"]), start=1
309+
sorted(domains_to_scan, key=lambda d: d["Domain name"]), start=1
310310
):
311311
logging.info(
312-
"Processing '%s' (%d/%d)...", domain_info["Domain Name"], i, total_domains
312+
"Processing '%s' (%d/%d)...", domain_info["Domain name"], i, total_domains
313313
)
314314
scanner.process_domain(domain_info)
315315

0 commit comments

Comments
 (0)