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
9d3c9e33
Commit
9d3c9e33
authored
Aug 13, 2012
by
Rocky Duan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixed tag autocomplete
parent
1f4d2f3d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
0 deletions
+6
-0
lms/lib/comment_client/comment_client.py
+6
-0
No files found.
lms/lib/comment_client/comment_client.py
View file @
9d3c9e33
...
...
@@ -22,6 +22,9 @@ def search_trending_tags(course_id, query_params={}, *args, **kwargs):
attributes
=
dict
(
default_params
.
items
()
+
query_params
.
items
())
return
perform_request
(
'get'
,
_url_for_search_trending_tags
(),
attributes
,
*
args
,
**
kwargs
)
def
tags_autocomplete
(
value
,
*
args
,
**
kwargs
):
return
perform_request
(
'get'
,
_url_for_threads_tags_autocomplete
(),
{
'value'
:
value
},
*
args
,
**
kwargs
)
def
_url_for_search_similar_threads
():
return
"{prefix}/search/threads/more_like_this"
.
format
(
prefix
=
settings
.
PREFIX
)
...
...
@@ -30,3 +33,6 @@ def _url_for_search_recent_active_threads():
def
_url_for_search_trending_tags
():
return
"{prefix}/search/tags/trending"
.
format
(
prefix
=
settings
.
PREFIX
)
def
_url_for_threads_tags_autocomplete
():
return
"{prefix}/threads/tags/autocomplete"
.
format
(
prefix
=
settings
.
PREFIX
)
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