Skip to content

Commit

Permalink
Fix typo in iNat observation search param key
Browse files Browse the repository at this point in the history
  • Loading branch information
JoeCohen committed Aug 14, 2024
1 parent 8a233d3 commit 804f40c
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions app/controllers/observations/inat_imports_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -155,8 +155,9 @@ def import_requested_observations
last_import_id = 0
loop do
page =
# make an iNat API search observations request
inat_search_observations(
ids: inat_ids, id_above: last_import_id,
id: inat_ids, id_above: last_import_id,
user_login: @inat_import.inat_username
)
break if page_empty?(page)
Expand Down Expand Up @@ -191,7 +192,7 @@ def inat_id_list
# multiple times.
def inat_search_observations(**args)
query_args = {
ids: nil, id_above: nil, only_id: false, per_page: 200,
id: nil, id_above: nil, only_id: false, per_page: 200,
order: "asc", order_by: "id",
# prevents user from importing others' obss
user_login: nil, iconic_taxa: ICONIC_TAXA
Expand Down

0 comments on commit 804f40c

Please sign in to comment.