From 76e7a2466b5053064ec70f25f824b7cb149be869 Mon Sep 17 00:00:00 2001 From: "Jean-Paul R. Soucy" Date: Wed, 16 Aug 2023 19:18:15 -0400 Subject: [PATCH] Update utils.py - Add UUID to list_inactive_datasets() output --- utils.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/utils.py b/utils.py index 30b2ae96..39eafdaf 100644 --- a/utils.py +++ b/utils.py @@ -76,10 +76,10 @@ def list_inactive_datasets(): max = u["file_duplicate"].max() # if last value is larger than max and at least 7, add to log if last > max and last >= 7: - log.append([u["name"].iloc[-1], last, max]) + log.append([u["name"].iloc[-1], u["uuid"].iloc[-1], last, max]) ## save result and sort - log = pd.DataFrame(log, columns = ["name", "current_dup_run", "previous_max_dup_run"]).sort_values(by = ["current_dup_run", "name"], ascending = [False, True]) + log = pd.DataFrame(log, columns = ["name", "uuid", "current_dup_run", "previous_max_dup_run"]).sort_values(by = ["current_dup_run", "name"], ascending = [False, True]) log = log.to_string(index=False) ## print result