From fe35e69c20320babc7397338192a846799e37b91 Mon Sep 17 00:00:00 2001 From: addelany Date: Thu, 18 Jul 2024 10:27:34 -0500 Subject: [PATCH] fix dates and model link --- R/build_model.R | 5 +++++ R/generate_authors.R | 3 ++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/R/build_model.R b/R/build_model.R index 5b8eb26..ac581b3 100644 --- a/R/build_model.R +++ b/R/build_model.R @@ -46,6 +46,11 @@ build_model <- function(model_id, #variables_reformat <- as.list(var_values) site_reformat <- paste(site_values, collapse = ", ") + ## manipulate dates to match STAC format + start_date <- paste0(start_date,"T00:00:00Z") + end_date <- paste0(end_date,"T00:00:00Z") + + aws_asset_link <- paste0('"',"s3://anonymous@", aws_download_path, "/project_id=", config$project_id, diff --git a/R/generate_authors.R b/R/generate_authors.R index 08d6baf..7038ef9 100644 --- a/R/generate_authors.R +++ b/R/generate_authors.R @@ -19,7 +19,8 @@ generate_authors <- function(model, metadata_table){ }else if (model_info$`Can we publicly list your name and email as part of the model metadata?` == 'Yes'){ - url_info <- model_info$`Contact email` + #url_info <- model_info$`Contact email` + url_info <- model_info$`Web link to model code` name_info <- model_info$`Contact name` x <- list(list('url' = url_info,