commit | 41d4e35c2d88f2f9f5a01a23023c910058067fbc | [log] [tgz] |
---|---|---|
author | Marc Kupietz <kupietz@ids-mannheim.de> | Mon Mar 11 21:48:55 2024 +0100 |
committer | Marc Kupietz <kupietz@ids-mannheim.de> | Mon Mar 11 22:23:21 2024 +0100 |
tree | 29072435395457294cb8d5b8e867dba21c590daf | |
parent | 8a3402d95fec2d99b81bad02de02d4594bc718cd [diff] |
Make sure that total results are numeric See: https://github.com/KorAP/Kustvakt/issues/668 which was fixed in https://korap.ids-mannheim.de/gerrit/c/KorAP/Kustvakt/+/7526 , but not yet rolled out in all KorAP instances Change-Id: I64c61c35734472e52f6875c35b6e587fb252c4c1
diff --git a/R/KorAPQuery.R b/R/KorAPQuery.R index c8da98e..5ead599 100644 --- a/R/KorAPQuery.R +++ b/R/KorAPQuery.R
@@ -209,7 +209,7 @@ message("API call failed.") totalResults <- 0 } else { - totalResults <-res$meta$totalResults + totalResults <-as.integer(res$meta$totalResults) log_info(verbose, ": ", totalResults, " hits") if(!is.null(res$meta$cached)) log_info(verbose, " [cached]\n")