Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
E
edx-platform-release
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
1
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Package Registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Hsin-Yu Chien
edx-platform-release
Commits
ce28ccb4
Commit
ce28ccb4
authored
5 years ago
by
Matt Hughes
Committed by
Matt Hughes
5 years ago
Browse files
Options
Downloads
Patches
Plain Diff
fix for python 3
parent
8299e0e7
Loading
Loading
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
lms/djangoapps/program_enrollments/management/commands/migrate_saml_uids.py
+5
-1
5 additions, 1 deletion
...gram_enrollments/management/commands/migrate_saml_uids.py
with
5 additions
and
1 deletion
lms/djangoapps/program_enrollments/management/commands/migrate_saml_uids.py
+
5
−
1
View file @
ce28ccb4
...
...
@@ -68,7 +68,11 @@ class Command(BaseCommand):
auth
.
uid
=
'
{slug}:{uid}
'
.
format
(
slug
=
slug
,
uid
=
uid
)
auth
.
save
()
updated
+=
1
not_previously_linked
=
reduce
(
lambda
count
,
mapping
:
count
+
(
not
email_map
[
mapping
[
'
email
'
]][
'
updated
'
]),
uid_mappings
,
0
)
not_previously_linked
=
0
for
mapping
in
uid_mappings
:
not_previously_linked
+=
not
email_map
[
mapping
[
'
email
'
]][
'
updated
'
]
log
.
info
(
'
Number of users with {slug} UserSocialAuth records for which there was no mapping in the provided file: {missed}
'
.
format
(
slug
=
slug
,
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment