Fix merging contributors

This commit is contained in:
Hans5958 2022-04-10 16:44:03 +07:00
parent 1070a5aa65
commit d9107ac6df

View file

@ -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)