Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: remove stray print statements #566

Merged
merged 1 commit into from
Sep 23, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 0 additions & 3 deletions enterprise_access/apps/content_assignments/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@ def has_time_to_complete(curr_date, end_date, weeks_to_complete):
"""
end_date_datetime = parser.parse(end_date)
offset_now_by_weeks_to_complete = curr_date + timedelta(weeks=weeks_to_complete)
print(offset_now_by_weeks_to_complete, end_date_datetime)
return offset_now_by_weeks_to_complete.replace(tzinfo=UTC).strftime("%Y-%m-%d") <= \
end_date_datetime.strftime("%Y-%m-%d")

Expand All @@ -50,8 +49,6 @@ def get_self_paced_normalized_start_date(start_date, end_date, course_metadata):
weeks_to_complete = course_metadata.get('weeks_to_complete', {}) or None
if not (start_date and end_date and pacing_type and weeks_to_complete):
return curr_date.strftime(BRAZE_ACTION_REQUIRED_BY_TIMESTAMP_FORMAT)
print(has_time_to_complete(curr_date, end_date, weeks_to_complete),
is_within_minimum_start_date_threshold(curr_date, start_date))
if pacing_type == "self_paced":
if has_time_to_complete(curr_date, end_date, weeks_to_complete) or \
is_within_minimum_start_date_threshold(curr_date, start_date):
Expand Down
Loading