From 8a0a0d30dcc63130c940eb25e85a7b42f52ea36b Mon Sep 17 00:00:00 2001 From: Ralph Bean Date: Tue, 12 Dec 2017 20:17:26 +0000 Subject: [PATCH] Include active/inactive flag. --- roles/pdc/frontend/files/exportbranches.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/roles/pdc/frontend/files/exportbranches.py b/roles/pdc/frontend/files/exportbranches.py index 0b5b9e596b..2298025054 100644 --- a/roles/pdc/frontend/files/exportbranches.py +++ b/roles/pdc/frontend/files/exportbranches.py @@ -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))