Skip to content
Snippets Groups Projects
Unverified Commit d24e4fe5 authored by Nick's avatar Nick Committed by GitHub
Browse files

Merge pull request #23876 from edx/revert-23871-ndalfonso/AA-138-banner-debug

Revert "add logs for debugging"
parents 6e262476 ede71300
No related branches found
No related tags found
No related merge requests found
......@@ -3,7 +3,6 @@ Common utilities for the course experience, including course outline.
"""
import logging
from datetime import timedelta
from completion.models import BlockCompletion
......@@ -20,8 +19,6 @@ from openedx.core.lib.cache_utils import request_cached
from student.models import CourseEnrollment
from xmodule.modulestore.django import modulestore
log = logging.getLogger(__name__)
@request_cached()
def get_course_outline_block_tree(request, course_id, user=None, allow_start_dates_in_future=False):
......@@ -280,16 +277,6 @@ def reset_deadlines_banner_should_display(course_key, request):
if display_reset_dates_banner:
break
for subsection in section.get('children', []):
if str(course_key) == 'course-v1:BabsonX+BPET.ACCx+2T2018':
log.info('**********DEBUGGING FOR RESET DATES BANNER FOR %s**********', request.user.username)
log.info(u'ALL SUBSECTION INFO: %s', subsection)
log.info(u'SUBSECTION COMPLETE: %s', subsection.get('complete', True))
log.info(u'SUBSECTION GRADED: %s', subsection.get('graded', False))
log.info(
u'SUBSECTION PAST DUE: %s',
subsection.get('due', timezone.now() + timedelta(1)) < timezone.now(),
)
log.info('*********END**********')
if (
not subsection.get('complete', True)
and subsection.get('graded', False)
......
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