Skip to content

Commit

Permalink
Merge pull request #181 from hugovk/convert-to-jpeg
Browse files Browse the repository at this point in the history
Convert to JPEG and resize
  • Loading branch information
hugovk authored Jun 19, 2020
2 parents 28d10f8 + d4ca5f0 commit ea33daa
Show file tree
Hide file tree
Showing 9 changed files with 3 additions and 3 deletions.
Binary file added congress/225x275/P000617.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added congress/225x275/R000616.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added congress/450x550/P000617.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added congress/450x550/R000616.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added congress/original/P000617.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed congress/original/P000617.png
Binary file not shown.
Binary file added congress/original/R000616.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed congress/original/R000616.png
Binary file not shown.
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 ea33daa

Please sign in to comment.