SciPost Code Repository

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

Debug

parent 0cef9ad6
No related branches found
No related tags found
No related merge requests found
......@@ -16,7 +16,7 @@ class Command(BaseCommand):
for fellow in fellows:
assignments_ongoing = fellow.editorial_assignments.ongoing()
assignments_to_consider = fellow.editorial_assignments.open()
assignments_upcoming_deadline = fellow.editorial_assignments_deadline_within(days=7)
assignments_upcoming_deadline = assignments_ongoing.refereeing_deadline_within(days=7)
if assignments_ongoing or assignments_to_consider or assignments_upcoming_deadline:
SubmissionUtils.load(
{
......
......@@ -258,8 +258,8 @@ class EditorialAssignmentQuerySet(models.QuerySet):
def refereeing_deadline_within(self, days=7):
return self.exclude(
submission__reporting_deadline_gt=timezone.now() + timezone.timedelta(days=days)
).exclude(submission__reporting_deadline_lt=timezone.now())
submission__reporting_deadline__gt=timezone.now() + timezone.timedelta(days=days)
).exclude(submission__reporting_deadline__lt=timezone.now())
class EICRecommendationQuerySet(models.QuerySet):
......
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