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
64e44b3a
Commit
64e44b3a
authored
Sep 28, 2016
by
stu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add some functions
parent
0344eff2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
0 deletions
+8
-0
lms/djangoapps/student_profile/views.py
+4
-0
lms/lib/courseware_search/lms_result_processor.py
+4
-0
No files found.
lms/djangoapps/student_profile/views.py
View file @
64e44b3a
...
...
@@ -101,3 +101,7 @@ def learner_profile_context(request, profile_username, user_is_staff):
context
[
'data'
][
'badges_api_url'
]
=
reverse
(
"badges_api:user_assertions"
,
kwargs
=
{
'username'
:
profile_username
})
return
context
def
another_abandoned_function
():
message
=
"I am all alone"
return
lms/lib/courseware_search/lms_result_processor.py
View file @
64e44b3a
...
...
@@ -63,3 +63,7 @@ class LmsSearchResultProcessor(SearchResultProcessor):
if
has_access
(
user
,
'staff'
,
self
.
get_course_key
()):
return
False
return
self
.
get_usage_key
()
not
in
self
.
get_course_blocks
(
user
)
.
get_block_keys
()
def
abandoned_function
(
self
):
message
=
"No one will ever find me here"
return
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