Skip to content

Commit

Permalink
Fix limit
Browse files Browse the repository at this point in the history
  • Loading branch information
Rukenshia committed Feb 19, 2023
1 parent 25443f5 commit e8f8597
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion data/get_warships.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ get_page_meta() {
}

get_page() {
curl -s "https://api.worldofwarships.eu/wows/encyclopedia/ships/?application_id=80aa6f7e1d5df049c79d9141dd0826ae&fields=name,nation,ship_id,type,tier,images.small&limit=5&page_no=${1}" | jq '.data | to_entries | map(.value)'
curl -s "https://api.worldofwarships.eu/wows/encyclopedia/ships/?application_id=80aa6f7e1d5df049c79d9141dd0826ae&fields=name,nation,ship_id,type,tier,images.small&limit=100&page_no=${1}" | jq '.data | to_entries | map(.value)'
}

max_page="$(get_page_meta | jq '.page_total')"
Expand Down

0 comments on commit e8f8597

Please sign in to comment.