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
791a3653
Commit
791a3653
authored
Nov 19, 2012
by
Victor Shnayder
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
simpify process_survey_link
parent
7546e6bb
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 additions
and
5 deletions
+1
-5
common/djangoapps/student/views.py
+1
-5
No files found.
common/djangoapps/student/views.py
View file @
791a3653
...
...
@@ -133,11 +133,7 @@ def process_survey_link(survey_link, user):
If {UNIQUE_ID} appears in the link, replace it with a unique id for the user.
Currently, this is sha1(user.username). Otherwise, return survey_link.
"""
to_replace
=
'{UNIQUE_ID}'
if
to_replace
in
survey_link
:
return
survey_link
.
replace
(
to_replace
,
unique_id_for_user
(
user
))
return
survey_link
return
survey_link
.
format
(
UNIQUE_ID
=
unique_id_for_user
(
user
))
def
cert_info
(
user
,
course
):
...
...
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