SciPost Code Repository

Skip to content
Snippets Groups Projects
Commit 51fa155d authored by George Katsikas's avatar George Katsikas :goat:
Browse files

automatically fail assignment on deadline exceeded

parent a96c99d5
Branches dev_GK_20240927_submission_autorejection
No related tags found
No related merge requests found
......@@ -42,15 +42,27 @@ class Command(BaseCommand):
if weeks_passed <= 0 or days_passed % 7 != 0:
continue
# Skip if just passed preassignment or just expired
if (weeks_passed == 0) or (weeks_until_assignment_deadline <= 0):
continue
# Send regular reminders if assignment deadline is not passed
if weeks_until_assignment_deadline > 0:
mail = DirectMailUtil(
f"authors/update_authors_assignment_stage",
submission=submission,
weeks_passed=weeks_passed,
submission_nearning_deadline=weeks_until_assignment_deadline <= 2,
weeks_until_assignment_deadline=weeks_until_assignment_deadline,
default_assignment_period_weeks=default_assignment_period_weeks,
)
# Automatically fail assignment if the deadline is passed
else:
submission.status = Submission.ASSIGNMENT_FAILED
submission.visible_pool = False
submission.visible_public = False
submission.save()
mail = DirectMailUtil(
"authors/submissions_assignment_failed",
submission=submission,
)
mail = DirectMailUtil(
f"authors/update_authors_assignment_stage",
submission=submission,
weeks_until_assignment_deadline=weeks_until_assignment_deadline,
weeks_passed=weeks_passed,
default_assignment_period_weeks=default_assignment_period_weeks,
)
mail.send_mail()
<p>Dear {{ object.submitted_by.profile.get_title_display }} {{ object.submitted_by.user.last_name }},</p>
<p>We regret to inform you that we have been unable to find an Editor-in-charge for your recent Submission to {{ object.submitted_to }},</p>
<p>{{ object.title }}</p>
<p>by {{ object.author_list }}</p>
<p>As per our standard procedures, your Submission was forwarded to specialist Fellows of our {{ object.submitted_to.college }} for consideration. Unfortunately, none of these Fellows made themselves available to take charge and run the refereeing process.</p>
<p>In view of this, we are unable to proceed further with the handling of your manuscript. We hope you can easily find an alternative publishing venue.</p>
<p>Despite this unsuccessful outcome, we thank you very much for your contribution, and hope to be able to be of service to you in the future.</p>
<p>Dear {{ object.submitted_by.profile.formal_name }},</p>
<p>
We regret to inform you that we have been unable to find an Editor-in-charge for your recent Submission to {{ object.submitted_to }},
<br />
<br />
<a href="https://{{ domain }}{{ object.get_absolute_url }}">{{ object.title }}</a>
<br />
by {{ object.author_list }}
<br />
</p>
<p>
As per our standard procedures, your Submission was forwarded to specialist Fellows of our {{ object.submitted_to.college }} for consideration. Unfortunately, none of these Fellows made themselves available to take charge and run the refereeing process.
</p>
<p>
In view of this, we are unable to proceed further with the handling of your manuscript. We hope you can easily find an alternative publishing venue.
</p>
<p>
Despite this unsuccessful outcome, we thank you very much for your contribution, and hope to be able to be of service to you in the future.
</p>
<p>Sincerely,</p>
<p>The SciPost Team.</p>
......
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