Skip to content

Commit

Permalink
Revert "Hard-code the minimum TaskDone created_before date"
Browse files Browse the repository at this point in the history
This reverts commit 43068d5.
  • Loading branch information
seanh committed Jan 2, 2024
1 parent 643573c commit 7bf3caa
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
3 changes: 0 additions & 3 deletions lms/tasks/email_digests.py
Original file line number Diff line number Diff line change
Expand Up @@ -162,9 +162,6 @@ def send_instructor_email_digest(
tzinfo=timezone.utc
),
created_after.replace(tzinfo=timezone.utc),
# Don't count annotations from before we deployed https://github.com/hypothesis/lms/pull/5904.
# This line can safely be removed on Weds 20th Dec 2023 or later.
datetime(year=2023, month=12, day=13, hour=5, tzinfo=timezone.utc),
)

digest_service = request.find_service(DigestService)
Expand Down
2 changes: 1 addition & 1 deletion tests/unit/lms/tasks/email_digests_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -345,7 +345,7 @@ def h_userid(self):
@pytest.fixture
def created_before(self):
"""Return the created_before arg that will be passed to send_instructor_email_digest()."""
return datetime(year=2023, month=12, day=25, hour=5, tzinfo=timezone.utc)
return datetime.now(timezone.utc)

@pytest.fixture
def make_task_done(self, h_userid, created_before):
Expand Down

0 comments on commit 7bf3caa

Please sign in to comment.