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
76a04fa8
Commit
76a04fa8
authored
May 09, 2014
by
Calen Pennington
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix discussions by correctly serializing outgoing course_ids
parent
558e9c8f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
lms/lib/comment_client/user.py
+3
-3
No files found.
lms/lib/comment_client/user.py
View file @
76a04fa8
...
...
@@ -87,7 +87,7 @@ class User(models.Model):
if
not
self
.
course_id
:
raise
CommentClientRequestError
(
"Must provide course_id when retrieving active threads for the user"
)
url
=
_url_for_user_active_threads
(
self
.
id
)
params
=
{
'course_id'
:
self
.
course_id
}
params
=
{
'course_id'
:
self
.
course_id
.
to_deprecated_string
()
}
params
=
merge_dict
(
params
,
query_params
)
response
=
perform_request
(
'get'
,
...
...
@@ -103,7 +103,7 @@ class User(models.Model):
if
not
self
.
course_id
:
raise
CommentClientRequestError
(
"Must provide course_id when retrieving subscribed threads for the user"
)
url
=
_url_for_user_subscribed_threads
(
self
.
id
)
params
=
{
'course_id'
:
self
.
course_id
}
params
=
{
'course_id'
:
self
.
course_id
.
to_deprecated_string
()
}
params
=
merge_dict
(
params
,
query_params
)
response
=
perform_request
(
'get'
,
...
...
@@ -119,7 +119,7 @@ class User(models.Model):
url
=
self
.
url
(
action
=
'get'
,
params
=
self
.
attributes
)
retrieve_params
=
self
.
default_retrieve_params
if
self
.
attributes
.
get
(
'course_id'
):
retrieve_params
[
'course_id'
]
=
self
.
course_id
retrieve_params
[
'course_id'
]
=
self
.
course_id
.
to_deprecated_string
()
try
:
response
=
perform_request
(
'get'
,
...
...
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