Include active/inactive flag.
This commit is contained in:
parent
907af54d73
commit
8a0a0d30dc
1 changed files with 2 additions and 3 deletions
|
@ -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))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue