Skip to content

Commit

Permalink
Fix Flake8
Browse files Browse the repository at this point in the history
  • Loading branch information
hugovk committed Jun 19, 2020
1 parent 8fb1bc4 commit d4ca5f0
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions scripts/missing.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ def file_exists(filename):
if not os.path.exists(filename):
print("---")
print("Not found:", filename)
print(l["name"])
print(legislator["name"])
return False
return True

Expand All @@ -50,8 +50,8 @@ def file_exists(filename):
download_legislator_data()

legislators = load_yaml("congress-legislators/legislators-current.yaml")
for l in legislators:
bioguide = l["id"]["bioguide"]
for legislator in legislators:
bioguide = legislator["id"]["bioguide"]
filename = os.path.join("congress", "original", bioguide + ".jpg")
if file_exists(filename):
# Only check for yaml if jpg exists
Expand Down

0 comments on commit d4ca5f0

Please sign in to comment.