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()
|
all_entries = ComponentBranch.objects.all()
|
||||||
output = collections.defaultdict(lambda: collections.defaultdict(list))
|
output = collections.defaultdict(lambda: collections.defaultdict(list))
|
||||||
for entry in all_entries:
|
for entry in all_entries:
|
||||||
if not is_branch_active(entry):
|
active = is_branch_active(entry)
|
||||||
continue
|
output[entry.type.name][entry.global_component.name].append([entry.name, active])
|
||||||
output[entry.type.name][entry.global_component.name].append(entry.name)
|
|
||||||
self.stdout.write(json.dumps(output))
|
self.stdout.write(json.dumps(output))
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue