Skip to content

Commit

Permalink
DP status report: fix DPs with no status
Browse files Browse the repository at this point in the history
Convert status to string before printing, in order to print
data packages where status is None (no status available)
correctly.
  • Loading branch information
stsnel committed Feb 13, 2025
1 parent 43fad47 commit 802f4d6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@

- Data package status report: fix for matching vault collections other than data
package collections in some cases.
- Data package status report: report data package collections with no valid status
correctly.

## 2024-12-24 v1.8.0

Expand Down
2 changes: 1 addition & 1 deletion yclienttools/reportdatapackagestatus.py
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ def report_data_package_status(args, session):
if args.stale and days_ago == 0 and hours_ago <= 4:
continue

line = data_package + " : " + human_readable_ago + " : " + status
line = data_package + " : " + human_readable_ago + " : " + str(status)
if args.email is None:
print(line)
else:
Expand Down

0 comments on commit 802f4d6

Please # to comment.