diff --git a/DESCRIPTION b/DESCRIPTION index 6935a0d..c6a64a0 100644 --- a/DESCRIPTION +++ b/DESCRIPTION @@ -1,6 +1,6 @@ Package: rcc.billing Title: REDCap Automated Billing -Version: 1.46.1 +Version: 1.46.2 Authors@R: c( person("Philip", "Chase", email = "pbc@ufl.edu", diff --git a/NEWS.md b/NEWS.md index e93d96d..aa5925b 100644 --- a/NEWS.md +++ b/NEWS.md @@ -1,3 +1,6 @@ +# rcc.billing 1.46.2 (released 2025-01-28) +- Update sequester_orphans.R (@pbchase, #263, #264) + # rcc.billing 1.46.1 (released 2025-01-22) - Handle an empty update in request_correction_of_bad_ownership_data.R (@pbchase) - use get_user_rights to find project designers (@ljwoodley, #248, #262) diff --git a/VERSION b/VERSION index aa3ed3a..94ed04f 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -1.46.1 +1.46.2 diff --git a/etl/sequester_orphans.R b/etl/sequester_orphans.R index 96906e3..d27cc72 100644 --- a/etl/sequester_orphans.R +++ b/etl/sequester_orphans.R @@ -81,6 +81,11 @@ email_info <- filter(!is.na(project_owner_email)) %>% select(project_owner_email, project_owner_full_name, user_suspended_time, project_id, app_title, project_hyperlink, creation_time, last_logged_event) +# if there is nothing to do, then exit +if(nrow(orphaned_projects) == 0) { + quit() +} + # Sequester the orphans result <- sequester_projects( conn = rc_conn,