Skip to content

Commit

Permalink
add warning for #108 #109
Browse files Browse the repository at this point in the history
  • Loading branch information
eblondel committed Jan 10, 2023
1 parent d653d58 commit d5083c1
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions R/ZenodoManager.R
Original file line number Diff line number Diff line change
Expand Up @@ -255,6 +255,9 @@ ZenodoManager <- R6Class("ZenodoManager",
resp <- zenReq$getResponse()
grants <- resp$hits$hits
total <- resp$hits$total
if(total > 10000){
self$WARN(sprintf("Total of %s records found: the Zenodo API limits to a maximum of 10,000 records!", total))
}
total_remaining <- total
hasGrants <- length(grants)>0
while(hasGrants){
Expand Down Expand Up @@ -367,6 +370,9 @@ ZenodoManager <- R6Class("ZenodoManager",
resp <- zenReq$getResponse()
funders <- resp$hits$hits
total <- resp$hits$total
if(total > 10000){
self$WARN(sprintf("Total of %s records found: the Zenodo API limits to a maximum of 10,000 records!", total))
}
total_remaining <- total
hasFunders <- length(funders)>0
while(hasFunders){
Expand Down

0 comments on commit d5083c1

Please sign in to comment.