Commit 847bf7c5 authored by Markus Scheidgen's avatar Markus Scheidgen
Browse files

Fixed the order of uploder, coauthors.

parent 32a10acd
Pipeline #48113 passed with stages
in 16 minutes and 46 seconds
......@@ -141,8 +141,10 @@ class Entry(Document, metaclass=WithDomain):
self.authors = [User.from_user_popo(user) for user in source.coauthors]
self.owners = [User.from_user_popo(user) for user in source.shared_with]
if self.uploader is not None:
self.authors.append(self.uploader)
self.owners.append(self.uploader)
if self.uploader not in self.authors:
self.authors.append(self.uploader)
if self.uploader not in self.owners:
self.owners.append(self.uploader)
self.comment = source.comment
self.references = [ref.value for ref in source.references]
self.datasets = [Dataset.from_dataset_popo(ds) for ds in source.datasets]
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment