From 4f4c14c31b4d258a5c754053151b2e1cb338edfb Mon Sep 17 00:00:00 2001 From: Nat DeFries <42820733+nmdefries@users.noreply.github.com> Date: Thu, 29 Feb 2024 18:26:50 -0500 Subject: [PATCH] change expected timecol output type based on `time_type` --- R/endpoints.R | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/R/endpoints.R b/R/endpoints.R index 0146ca64..6949a136 100644 --- a/R/endpoints.R +++ b/R/endpoints.R @@ -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"),