SciPost Code Repository

Skip to content
Snippets Groups Projects
Commit 3d216843 authored by Jean-Sébastien Caux's avatar Jean-Sébastien Caux
Browse files

Use 0-based list index.

parent babd941d
No related branches found
No related tags found
No related merge requests found
......@@ -24,6 +24,6 @@ def authors_in_right_order(publication):
return False
list_of_authors = publication.author_list.split(',')
for author in publication.authors.all():
if author.last_name not in list_of_authors[author.order]:
if author.last_name not in list_of_authors[author.order - 1]:
return False
return True
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment