mirror of
https://github.com/FairRootGroup/FairMQ.git
synced 2025-10-13 08:41:16 +00:00
build(metaUpdater): Fix Adding new "creators" to .zenodo.json
When adding new "creators" to .zenodo.json, the kwargs['contributor_type'] is not set at all. Instead use normal keyword handling with defaults.
This commit is contained in:
parent
832c83247a
commit
fc82f262dc
|
@ -119,11 +119,11 @@ class ZenodoManipulator(Manipulator):
|
|||
return None
|
||||
|
||||
@staticmethod
|
||||
def update_person_entry(entry, matchdict, **kwargs):
|
||||
def update_person_entry(entry, matchdict, contributor_type=None):
|
||||
if entry is None:
|
||||
entry = OrderedDict()
|
||||
if kwargs['contributor_type']:
|
||||
entry['type'] = kwargs['contributor_type']
|
||||
if contributor_type:
|
||||
entry['type'] = contributor_type
|
||||
for field in ('name', 'orcid'):
|
||||
val = matchdict.get(field, None)
|
||||
if val is not None:
|
||||
|
|
Loading…
Reference in New Issue
Block a user