Updates FB sync script
This commit is contained in:
1 parent
305e9888a0
commit
32bb4d94ab
1 file changed
+4
-3
@@ -40,7 +40,8 @@ for member in group_members:
|
|||||||
match = difflib.get_close_matches(member[0], names, 1) # max 1 match
|
match = difflib.get_close_matches(member[0], names, 1) # max 1 match
|
||||||
if match:
|
if match:
|
||||||
u = UserProfile.objects.get(pk=name_lookup[match[0]])
|
u = UserProfile.objects.get(pk=name_lookup[match[0]])
|
||||||
# Note: This is not correct, image is only kind of a textfield
|
if str(u.image) is "":
|
||||||
u.image = 'https://graph.facebook.com/{0}/picture'.format(member[1])
|
# Note: This is not correct, image is only kind of a textfield
|
||||||
u.save()
|
u.image = 'https://graph.facebook.com/{0}/picture'.format(member[1])
|
||||||
|
u.save()
|
||||||
|
|
||||||
Reference in new issue
Block a user