From 804f40c8f5862292b220cee715ac2e57e60ca0f6 Mon Sep 17 00:00:00 2001 From: Joe Cohen Date: Wed, 14 Aug 2024 16:55:56 -0700 Subject: [PATCH] Fix typo in iNat observation search param key --- app/controllers/observations/inat_imports_controller.rb | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/app/controllers/observations/inat_imports_controller.rb b/app/controllers/observations/inat_imports_controller.rb index 99ed6192c6..3715d00470 100644 --- a/app/controllers/observations/inat_imports_controller.rb +++ b/app/controllers/observations/inat_imports_controller.rb @@ -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) @@ -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