Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
edx-platform
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
edx
edx-platform
Commits
8b6e3b44
Commit
8b6e3b44
authored
Feb 18, 2014
by
Usman Khalid
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Replaces print statement in django_comment_client with unicode log.debug.
LMS-2194
parent
0f0b2622
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
2 deletions
+4
-2
lms/djangoapps/django_comment_client/tests/test_utils.py
+3
-1
lms/djangoapps/django_comment_client/utils.py
+1
-1
No files found.
lms/djangoapps/django_comment_client/tests/test_utils.py
View file @
8b6e3b44
# -*- 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
)
...
...
lms/djangoapps/django_comment_client/utils.py
View file @
8b6e3b44
...
...
@@ -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
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment