diff --git a/submissions/management/commands/email_fellows_tasklist.py b/submissions/management/commands/email_fellows_tasklist.py index eec5ee2c880884847a57110f2bbabca68bba1fb2..7c79b557c1d5f40fcccec6cf8027b3995b5d32c1 100644 --- a/submissions/management/commands/email_fellows_tasklist.py +++ b/submissions/management/commands/email_fellows_tasklist.py @@ -10,7 +10,7 @@ class Command(BaseCommand): help = 'Sends an email to Fellows with current and upcoming tasks list' def handle(self, *args, **kwargs): fellows = Contributor.objects.fellows( - ).filter(user__last_name__startswith='B' # temporary limitation, to ease testing + ).filter(user__last_name__istartswith='C' # temporary limitation, to ease testing ).order_by('user__last_name') for fellow in fellows: diff --git a/submissions/managers.py b/submissions/managers.py index 8379bc7536ce12af7979748dba51186633f023b7..c31adb4fce82e763def9e11c969cea246e5d2223 100644 --- a/submissions/managers.py +++ b/submissions/managers.py @@ -251,7 +251,7 @@ class EditorialAssignmentQuerySet(models.QuerySet): return self.filter(completed=True) def ongoing(self): - return self.filter(completed=False).accepted() + return self.filter(completed=False, deprecated=False).accepted() def open(self): return self.filter(accepted=None, deprecated=False) diff --git a/templates/email/email_fellow_tasklist.html b/templates/email/email_fellow_tasklist.html index 197296867b2d135108ae037db9b07ea40b9e2f80..7af83e7ac4fee5e5786aa55efa64f0fff50d655d 100644 --- a/templates/email/email_fellow_tasklist.html +++ b/templates/email/email_fellow_tasklist.html @@ -7,7 +7,7 @@ <ul> {% for assignment in assignments_to_consider %} <li>On submission: {{ assignment.submission }}<br> - <a href="{% url 'submissions:assignment_request' assignment.id %}">Accept or decline here</a> + <a href="https://scipost.org{% url 'submissions:assignment_request' assignment.id %}">Accept or decline here</a> </li> {% endfor %} </ul> @@ -19,10 +19,10 @@ <li> <div class="pool-item"> <p class="mb-1"> - <a href="{% url 'submissions:pool' assignment.submission.arxiv_identifier_w_vn_nr %}">{{ assignment.submission.title }}</a><br> + <a href="https://scipost.org{% url 'submissions:pool' assignment.submission.arxiv_identifier_w_vn_nr %}">{{ assignment.submission.title }}</a><br> <em>by {{ assignment.submission.author_list }}</em> </p> - <p><a href="{% url 'submissions:editorial_page' assignment.submission.arxiv_identifier_w_vn_nr %}">Go to this Submission's Editorial page</a></p> + <p><a href="https://scipost.org{% url 'submissions:editorial_page' assignment.submission.arxiv_identifier_w_vn_nr %}">Go to this Submission's Editorial page</a></p> {% include 'submissions/_required_actions_block.html' with submission=assignment.submission %} </div> </li> @@ -36,11 +36,11 @@ <li> <div class="pool-item"> <p class="mb-1"> - <a href="{% url 'submissions:pool' assignment.submission.arxiv_identifier_w_vn_nr %}">{{ assignment.submission.title }}</a><br> + <a href="https://scipost.org{% url 'submissions:pool' assignment.submission.arxiv_identifier_w_vn_nr %}">{{ assignment.submission.title }}</a><br> <em>by {{ assignment.submission.author_list }}</em> </p> <p>Refereeing deadline: {{ assignment.submission.reporting_deadline|date:"Y-m-d" }}.</p> - <p><a href="{% url 'submissions:editorial_page' assignment.submission.arxiv_identifier_w_vn_nr %}">Go to this Submission's Editorial page</a></p> + <p><a href="https://scipost.org{% url 'submissions:editorial_page' assignment.submission.arxiv_identifier_w_vn_nr %}">Go to this Submission's Editorial page</a></p> </div> </li> {% endfor %}