Skip to content

Commit

Permalink
More data
Browse files Browse the repository at this point in the history
  • Loading branch information
dylan8902 committed Feb 20, 2024
1 parent 1f88bdb commit b72cfd5
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions app/controllers/pub_thursday_audit_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,16 @@ def index
response = JSON.parse(RestClient.get(url).body)
documents.concat response["documents"]

url = "#{url}&pageToken=#{response["nextPageToken"]}"
response = JSON.parse(RestClient.get(url).body)
next_page = "#{url}&pageToken=#{response["nextPageToken"]}"
response = JSON.parse(RestClient.get(next_page).body)
documents.concat response["documents"]

next_page = "#{url}&pageToken=#{response["nextPageToken"]}"
response = JSON.parse(RestClient.get(next_page).body)
documents.concat response["documents"]

next_page = "#{url}&pageToken=#{response["nextPageToken"]}"
response = JSON.parse(RestClient.get(next_page).body)
documents.concat response["documents"]

documents.each do |session|
Expand Down

0 comments on commit b72cfd5

Please sign in to comment.