Skip to content
Snippets Groups Projects
Commit ce28ccb4 authored by Matt Hughes's avatar Matt Hughes Committed by Matt Hughes
Browse files

fix for python 3

parent 8299e0e7
No related merge requests found
......@@ -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,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment