Skip to content

Commit

Permalink
Merge pull request #196 from nf-osi/add-meta-to-register-study
Browse files Browse the repository at this point in the history
Add grantStartDate, etc.
  • Loading branch information
anngvu authored Oct 28, 2024
2 parents 6a0a663 + 3d3c7f6 commit 82157b5
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion R/register_study.R
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,10 @@ add_new_study_meta <- function(id, study_meta) {
"dataStatus",
"grantDOI",
"relatedStudies",
"studyFileviewId")]
"studyFileviewId",
"grantStartDate",
"grantEndDate",
"embargoEndDate")]

if(is.null(study_meta$studyStatus) || is.na(study_meta$studyStatus)) study_meta$studyStatus <- "Active"
if(is.null(study_meta$dataStatus) || is.na(study_meta$dataStatus)) study_meta$dataStatus <- "Data Pending"
Expand Down

0 comments on commit 82157b5

Please sign in to comment.