Skip to content

Commit

Permalink
more params
Browse files Browse the repository at this point in the history
  • Loading branch information
riceissa committed Dec 31, 2017
1 parent b64aec9 commit d2314e3
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion scrape.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ def main():
go(writer)


def do_grantee(fy_sums, grantee_num):
def do_grantee(writer, fy_sums, grantee_num, grantee, grantee_url):
# Now we go to the grantee page to get information about each individual
# grant. We only need to do this once for each grantee.
if grantee_num not in fy_sums:
Expand Down Expand Up @@ -71,6 +71,8 @@ def go(writer):
assert amount.startswith("$"), amount
amount = float(amount.replace("$", "").replace(",", ""))

do_grantee(writer, fy_sums, grantee_num, grantee, grantee_url)

try:
assert fy_sums[grantee_num][fiscal_year] == amount, \
(grantee, fiscal_year, fy_sums[grantee_num][fiscal_year],
Expand Down

0 comments on commit d2314e3

Please sign in to comment.