mirror of
https://github.com/placeAtlas/atlas.git
synced 2024-09-27 12:39:18 +02: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:
|
if 'edit' in entry:
|
||||||
out_edited_added_ids.append(entry['edit'])
|
out_edited_added_ids.append(entry['edit'])
|
||||||
del 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
|
atlas_json[index] = entry
|
||||||
else:
|
else:
|
||||||
atlas_json.append(entry)
|
atlas_json.append(entry)
|
||||||
|
|
Loading…
Reference in a new issue