Post Web Assets v2 upgrade UI fixes and improvements #114
@ -50,6 +50,7 @@ class ApprovalQueueView(ListView):
|
|||||||
'extension': extension,
|
'extension': extension,
|
||||||
'last_activity': None,
|
'last_activity': None,
|
||||||
'last_type_display': None,
|
'last_type_display': None,
|
||||||
|
'type': None,
|
||||||
}
|
}
|
||||||
by_extension[extension] = stats
|
by_extension[extension] = stats
|
||||||
by_date_created.append(stats)
|
by_date_created.append(stats)
|
||||||
@ -61,7 +62,8 @@ class ApprovalQueueView(ListView):
|
|||||||
stats['type'] = item.type
|
stats['type'] = item.type
|
||||||
groupped_by_type = defaultdict(list)
|
groupped_by_type = defaultdict(list)
|
||||||
for stats in by_date_created:
|
for stats in by_date_created:
|
||||||
groupped_by_type[stats['type']].append(stats)
|
type = stats['type'] or ApprovalActivity.ActivityType.AWAITING_REVIEW
|
||||||
|
groupped_by_type[type].append(stats)
|
||||||
result = []
|
result = []
|
||||||
for type in STATUS_CHANGE_TYPES:
|
for type in STATUS_CHANGE_TYPES:
|
||||||
result.extend(groupped_by_type[type])
|
result.extend(groupped_by_type[type])
|
||||||
|
Loading…
Reference in New Issue
Block a user