Skip to content

Commit

Permalink
Update utils.py
Browse files Browse the repository at this point in the history
- Add UUID to list_inactive_datasets() output
  • Loading branch information
jeanpaulrsoucy committed Aug 16, 2023
1 parent f34ae8a commit 76e7a24
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 76e7a24

Please sign in to comment.