diff options
author | Ben Hutchings <ben@decadent.org.uk> | 2022-07-03 02:43:58 +0200 |
---|---|---|
committer | Ben Hutchings <ben@decadent.org.uk> | 2023-08-20 22:28:16 +0200 |
commit | d283c8caf077fb4c4712a33639c31d8889d83366 (patch) | |
tree | 6f555f98b3e171c8f3085564f8aecca5e4454960 /scripts | |
parent | 04063792800307a2110442ef70ca33405a179e02 (diff) |
scripts/filter-active.py: Use parse_status to get state
filter-active.py currently takes the first word of the status, as the
overall state. This is not always correct. Use parse_status to get
it instead.
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/filter-active.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/filter-active.py b/scripts/filter-active.py index dd164ab0..943b3bb1 100755 --- a/scripts/filter-active.py +++ b/scripts/filter-active.py @@ -104,7 +104,7 @@ if __name__ == '__main__': sys.stdout.write("%*s:" % (name_width, i.name)) for release in list_releases: status = i.status(release) or "unknown" - status_short = status.split(' ')[0] + status_short = parse_status(status)['state'] if options.color and status_short in status_color: color_on = status_color[status_short] else: |