mirror of
https://github.com/placeAtlas/atlas.git
synced 2024-12-25 20:04:18 +01:00
Fix merging contributors
This commit is contained in:
parent
1070a5aa65
commit
d9107ac6df
1 changed files with 3 additions and 0 deletions
|
@ -35,6 +35,9 @@
|
|||
if 'edit' in entry:
|
||||
out_edited_added_ids.append(entry['edit'])
|
||||
del entry['edit']
|
||||
if 'submitted_by' in atlas_json[index]:
|
||||
atlas_json[index].contributors = [ atlas_json[index]['submitted_by'] ]
|
||||
entry['contributors'] = atlas_json[index]['contributors'] + list(set(entry['contributors']) - set(atlas_json[index]['contributors']))
|
||||
atlas_json[index] = entry
|
||||
else:
|
||||
atlas_json.append(entry)
|
||||
|
|
Loading…
Reference in a new issue