Merge "Get historical affiliations from the summit API"

This commit is contained in:
Zuul 2024-02-24 04:24:03 +00:00 committed by Gerrit Code Review
commit 9132940385
2 changed files with 3 additions and 3 deletions

View File

@ -584,8 +584,8 @@ def main(options):
if profile['data']:
if 'country' in profile['data'][0]:
owners[owner]['country'] = profile['data'][0]['country']
if 'affiliations' in profile['data'][0]:
affiliations = profile['data'][0]['affiliations']
if 'all_affiliations' in profile['data'][0]:
affiliations = profile['data'][0]['all_affiliations']
if affiliations:
owners[owner]['affiliations'] = []
for affiliation in affiliations:

View File

@ -111,7 +111,7 @@ def lookup_osf(email, group_slug=None, verbose=0):
"""A requests wrapper to querying the OSF member directory API"""
params = {
'expand': 'groups',
'expand': 'groups,all_affiliations,all_affiliations.organization',
'filter[]': ['email==%s' % email],
'relations': 'affiliations,groups',
}