SciPost Code Repository

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

No required_action if EICRecommendation has been formulated.

parent 69623cab
No related branches found
No related tags found
No related merge requests found
...@@ -31,9 +31,9 @@ def required_actions(submission): ...@@ -31,9 +31,9 @@ def required_actions(submission):
This method returns a list of required actions on a Submission. This method returns a list of required actions on a Submission.
Each list element is a textual statement. Each list element is a textual statement.
""" """
if submission.status in SUBMISSION_STATUS_OUT_OF_POOL: if (submission.status in SUBMISSION_STATUS_OUT_OF_POOL
return [] or submission.status == 'revision_requested'
if submission.status == 'revision_requested': or submission.eicrecommendation_set.exists()):
return [] return []
todo = [] todo = []
for comment in submission.comment_set.all(): for comment in submission.comment_set.all():
...@@ -70,7 +70,8 @@ def required_actions(submission): ...@@ -70,7 +70,8 @@ def required_actions(submission):
% (refname, str(timeleft.days))) % (refname, str(timeleft.days)))
if submission.reporting_deadline < timezone.now(): if submission.reporting_deadline < timezone.now():
todo.append('The refereeing deadline has passed. Please either extend it, ' todo.append('The refereeing deadline has passed. Please either extend it, '
'or formulate your Editorial Recommendation.') 'or formulate your Editorial Recommendation if at least '
'one Report has been received.')
reports = submission.report_set.all() reports = submission.report_set.all()
for report in reports: for report in reports:
if report.status == 0: if report.status == 0:
......
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