Skip to content

Commit

Permalink
change expected timecol output type based on time_type
Browse files Browse the repository at this point in the history
  • Loading branch information
nmdefries committed Feb 29, 2024
1 parent a920a76 commit 4f4c14c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions R/endpoints.R
Original file line number Diff line number Diff line change
Expand Up @@ -1051,8 +1051,8 @@ pub_covidcast <- function(
c("day", "week")
),
create_epidata_field_info("geo_value", "text"),
create_epidata_field_info("time_value", "date"),
create_epidata_field_info("issue", "date"),
create_epidata_field_info("time_value", switch(time_type, day = "date", week = "epiweek")),
create_epidata_field_info("issue", switch(time_type, day = "date", week = "epiweek")),
create_epidata_field_info("lag", "int"),
create_epidata_field_info("value", "float"),
create_epidata_field_info("stderr", "float"),
Expand Down

0 comments on commit 4f4c14c

Please sign in to comment.