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
4f383353
Commit
4f383353
authored
Sep 30, 2014
by
Omar Al-Ithawi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Four Unicode fixes in discussion
parent
b6ed8219
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
4 deletions
+5
-4
AUTHORS
+1
-0
lms/lib/comment_client/thread.py
+2
-2
lms/lib/comment_client/utils.py
+2
-2
No files found.
AUTHORS
View file @
4f383353
...
...
@@ -177,3 +177,4 @@ Alasdair Swan <aswan@edx.org>
Paul Medlock-Walton <paulmw@mit.edu>
Henry Tareque <henry.tareque@gmail.com>
Eugeny Kolpakov <eugeny.kolpakov@gmail.com>
Omar Al-Ithawi <oithawi@qrf.org>
lms/lib/comment_client/thread.py
View file @
4f383353
...
...
@@ -90,9 +90,9 @@ class Thread(models.Model):
@classmethod
def
url_for_threads
(
cls
,
params
=
{}):
if
params
.
get
(
'commentable_id'
):
return
"{prefix}/{commentable_id}/threads"
.
format
(
prefix
=
settings
.
PREFIX
,
commentable_id
=
params
[
'commentable_id'
])
return
u
"{prefix}/{commentable_id}/threads"
.
format
(
prefix
=
settings
.
PREFIX
,
commentable_id
=
params
[
'commentable_id'
])
else
:
return
"{prefix}/threads"
.
format
(
prefix
=
settings
.
PREFIX
)
return
u
"{prefix}/threads"
.
format
(
prefix
=
settings
.
PREFIX
)
@classmethod
def
url_for_search_threads
(
cls
,
params
=
{}):
...
...
lms/lib/comment_client/utils.py
View file @
4f383353
...
...
@@ -40,8 +40,8 @@ def request_timer(request_id, method, url, tags=None):
duration
=
end
-
start
log
.
info
(
"comment_client_request_log: request_id={request_id}, method={method}, "
"url={url}, duration={duration}"
.
format
(
u
"comment_client_request_log: request_id={request_id}, method={method}, "
u
"url={url}, duration={duration}"
.
format
(
request_id
=
request_id
,
method
=
method
,
url
=
url
,
...
...
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