Skip to content

Commit

Permalink
Update mx_api.R
Browse files Browse the repository at this point in the history
Fix bug: change count result to numeric
  • Loading branch information
nthun authored May 3, 2024
1 parent 73ad971 commit 027aa19
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/mx_api.R
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ mx_api_content <- function(from_date = "2013-01-01",

details <- api_to_df(details_link)

count <- details$messages[1, 6]
count <- as.numeric(details$messages[1, 6])
pages <- floor(count / 100)

message("Estimated total number of records as per API metadata: ", count)
Expand Down

0 comments on commit 027aa19

Please sign in to comment.