Skip to content

Commit

Permalink
allow multiple cdm_source rows
Browse files Browse the repository at this point in the history
  • Loading branch information
katy-sadowski committed Nov 3, 2023
1 parent 87fc78a commit 426b342
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions R/executeDqChecks.R
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,10 @@ executeDqChecks <- function(connectionDetails,
if (nrow(metadata) < 1) {
stop("Please populate the cdm_source table before executing data quality checks.")
}
if (nrow(metadata) > 1) {
metadata <- metadata[1]
warning("The cdm_source table has more than 1 row. A single row from this table has been selected to populate DQD metadata.")
}
metadata$dqdVersion <- as.character(packageVersion("DataQualityDashboard"))
DatabaseConnector::disconnect(connection)
} else {
Expand Down

0 comments on commit 426b342

Please sign in to comment.