mirror of
https://github.com/cwinfo/powerdns-admin.git
synced 2024-12-04 19:15:30 +00:00
minor syntax improvement to use single history object as list
This commit is contained in:
parent
84d792ac07
commit
d27fa2aa96
@ -985,9 +985,7 @@ def convert_histories(histories):
|
||||
detailedHistories = []
|
||||
for history in histories:
|
||||
if history.detail and ('add_rrsets' in history.detail or 'del_rrsets' in history.detail):
|
||||
history_as_list = list()
|
||||
history_as_list.append(history)
|
||||
detailedHistories.append(DetailedHistory(history, extract_changelogs_from_history(history_as_list)))
|
||||
detailedHistories.append(DetailedHistory(history, extract_changelogs_from_history([history])))
|
||||
else:
|
||||
detailedHistories.append(DetailedHistory(history, None))
|
||||
return detailedHistories
|
||||
|
Loading…
Reference in New Issue
Block a user