Include active/inactive flag.

This commit is contained in:
Ralph Bean 2017-12-12 20:17:26 +00:00
parent 907af54d73
commit 8a0a0d30dc

View file

@ -18,7 +18,6 @@ class Command(BaseCommand):
all_entries = ComponentBranch.objects.all()
output = collections.defaultdict(lambda: collections.defaultdict(list))
for entry in all_entries:
if not is_branch_active(entry):
continue
output[entry.type.name][entry.global_component.name].append(entry.name)
active = is_branch_active(entry)
output[entry.type.name][entry.global_component.name].append([entry.name, active])
self.stdout.write(json.dumps(output))