Skip to content

Commit

Permalink
update dump speaker script
Browse files Browse the repository at this point in the history
  • Loading branch information
adrienpoly committed Jan 28, 2025
1 parent a05aef7 commit 48dbf91
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion scripts/dump_speakers.rb
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,10 @@ def fetch_speakers

speakers.concat(parsed_response["speakers"].map { |speaker| speaker.except("id", "updated_at", "created_at", "talks_count") })
current_page += 1
break if parsed_response.dig("pagination", "next_page").nil?

next_page = parsed_response.dig("pagination", "next_page")
pages = parsed_response.dig("pagination", "pages")
break if next_page.nil? || current_page > pages
end

speakers
Expand Down

0 comments on commit 48dbf91

Please sign in to comment.