update to #59746 (use path parameter)

This commit is contained in:
Nicolas Roche 2022-01-25 19:36:37 +01:00
parent 802f158c6d
commit 3bb0e544f6
1 changed files with 1 additions and 1 deletions

View File

@ -34,7 +34,7 @@ settings = {
for key, value in settings.items():
vocabulary_id = value.pop('vocabulary_id')
con = PloneRestApi.objects.get(slug=key)
resp = con.request(uri='@vocabularies', uid=vocabulary_id, params = {'b_size': 100})
resp = con.request(path='@vocabularies/%s' % vocabulary_id, params = {'b_size': 100})
value['field_values'] = resp['items']
with open('topics.json', 'w') as fd: