Skip to content

Commit

Permalink
Update faa_nfdc_get_fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinelliott authored Mar 22, 2024
1 parent 8161bcc commit 6fdb12c
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions scripts/faa/faa_nfdc_get_fixes
Original file line number Diff line number Diff line change
Expand Up @@ -170,8 +170,9 @@ if res.code == "200"
for i in 1..(total_pages-1) do
res = retrieve_page(i)
if res.code == "200"
fixes += process_data(res['data'])
puts "Retrieved #{fixes.count} records"
results = JSON.parse(res.body)
puts "Retrieved #{results['data'].count} records"
fixes += process_data(results['data'])
sleep(0.2)
else
puts "There was an error: #{res.code}. Exiting..."
Expand Down

0 comments on commit 6fdb12c

Please sign in to comment.