aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMart Raudsepp <leio@gentoo.org>2016-11-11 03:22:04 +0200
committerMart Raudsepp <leio@gentoo.org>2016-11-11 03:22:04 +0200
commit5972da09a9d9faaa7dbf45929a6c09a0d07d0691 (patch)
tree5f6dec440959896b3da38c61ed02728fd1161255 /backend
parentNormalize subproject inherit-members to True or False during parsing (diff)
downloadgrumpy-5972da09a9d9faaa7dbf45929a6c09a0d07d0691.tar.gz
grumpy-5972da09a9d9faaa7dbf45929a6c09a0d07d0691.tar.bz2
grumpy-5972da09a9d9faaa7dbf45929a6c09a0d07d0691.zip
Add parsed project members to the result dict
Diffstat (limited to 'backend')
-rw-r--r--backend/lib/sync.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/backend/lib/sync.py b/backend/lib/sync.py
index 291d701..fbc653a 100644
--- a/backend/lib/sync.py
+++ b/backend/lib/sync.py
@@ -38,6 +38,9 @@ def sync_projects():
member[member_tag] = member_elem.text
if 'email' in member:
# TODO: Sync the members (it's valid as email is given) - maybe at the end, after we have synced the project data, so we can add him to the project directly
+ if 'members' not in proj:
+ proj['members'] = []
+ proj['members'].append(member)
pass
elif tag == 'subproject':
if 'ref' in elem.attrib: