Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
nomad-lab
nomad-FAIR
Commits
847bf7c5
Commit
847bf7c5
authored
May 11, 2019
by
Markus Scheidgen
Browse files
Fixed the order of uploder, coauthors.
parent
32a10acd
Pipeline
#48113
passed with stages
in 16 minutes and 46 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
nomad/search.py
View file @
847bf7c5
...
...
@@ -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
]
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment