Skip to content

Commit

Permalink
Fixes issue 268
Browse files Browse the repository at this point in the history
  • Loading branch information
MansMeg committed Jan 13, 2024
1 parent 809b190 commit 1f6ebb3
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion R/pxweb_add_config.R
Original file line number Diff line number Diff line change
Expand Up @@ -46,10 +46,16 @@ pxweb_add_config <- function(obj) {
}

cfg <- httr::content(r, "parsed")
if(!is.null(cfg$maxCells)){
mvtd <- cfg$maxCells
} else {
mvtd <- cfg$maxValues

Check warning on line 52 in R/pxweb_add_config.R

View check run for this annotation

Codecov / codecov/patch

R/pxweb_add_config.R#L52

Added line #L52 was not covered by tests
}

obj$config <- list(
calls_per_period = cfg$maxCalls,
period_in_seconds = cfg$timeWindow,
max_values_to_download = cfg$maxValues,
max_values_to_download = mvtd,
CORS = cfg$CORS
)

Expand Down

0 comments on commit 1f6ebb3

Please sign in to comment.