PR#3813: list-history: fix [still active] display for edit entries

Merges #3813
https://pagure.io/koji/pull-request/3813

Fixes: #3814
https://pagure.io/koji/issue/3814
list-history does not show edits as active when they are
This commit is contained in:
Tomas Kopecek 2023-06-22 15:32:35 +02:00
commit 5ae0e251f1

View file

@ -4284,7 +4284,7 @@ def _print_histline(entry, **kwargs):
parts.insert(1, "(eid %i)" % event_id)
if who:
parts.append(who % x)
if create and x['active']:
if (create and x['active']) or (edit and other[-1]['active']):
parts.append("[still active]")
print(' '.join(parts))
hidden_fields = ['active', 'create_event', 'revoke_event', 'creator_id', 'revoker_id',