diff --git a/lms/djangoapps/django_comment_client/tests/test_utils.py b/lms/djangoapps/django_comment_client/tests/test_utils.py index a35f6d8b78..53a61ba7e1 100644 --- a/lms/djangoapps/django_comment_client/tests/test_utils.py +++ b/lms/djangoapps/django_comment_client/tests/test_utils.py @@ -1,3 +1,5 @@ +# -*- coding: utf-8 -*- + import json import mock from datetime import datetime @@ -296,7 +298,7 @@ class CategoryMapTestCase(ModuleStoreTestCase): now = datetime.now() later = datetime.max self.create_discussion("Chapter 1", "Discussion 1", start=now) - self.create_discussion("Chapter 1", "Discussion 2", start=later) + self.create_discussion("Chapter 1", "Discussion 2 обсуждение", start=later) self.create_discussion("Chapter 2", "Discussion", start=now) self.create_discussion("Chapter 2 / Section 1 / Subsection 1", "Discussion", start=later) self.create_discussion("Chapter 2 / Section 1 / Subsection 2", "Discussion", start=later) diff --git a/lms/djangoapps/django_comment_client/utils.py b/lms/djangoapps/django_comment_client/utils.py index 10d83c00ee..a0ff410ac4 100644 --- a/lms/djangoapps/django_comment_client/utils.py +++ b/lms/djangoapps/django_comment_client/utils.py @@ -107,7 +107,7 @@ def _filter_unstarted_categories(category_map): if key != "start_date": filtered_map["entries"][child][key] = unfiltered_map["entries"][child][key] else: - print "filtering %s" % child, unfiltered_map["entries"][child]["start_date"] + log.debug(u"Filtering out:%s with start_date: %s", child, unfiltered_map["entries"][child]["start_date"]) else: if unfiltered_map["subcategories"][child]["start_date"] < now: filtered_map["children"].append(child)