Skip to content

Commit

Permalink
Fix oopsies
Browse files Browse the repository at this point in the history
  • Loading branch information
jthompson-arcus committed Nov 21, 2024
1 parent 7e26f83 commit ad3f05e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/fct_SQLite.R
Original file line number Diff line number Diff line change
Expand Up @@ -335,7 +335,7 @@ db_save_review <- function(
table = "all_review_data"
){
stopifnot(is.data.frame(rv_records))
stopifnot(is.character(table) && length(table) != 1)
stopifnot(is.character(table) && length(table) == 1)
if (any(duplicated(rv_records[["id"]]))) {
warning("duplicate records detected to save in database. Only the first will be selected.")
rv_records <- rv_records[!duplicated(rv_records[["id"]]),]
Expand Down

0 comments on commit ad3f05e

Please sign in to comment.