mirror of https://github.com/zulip/zulip.git
Fix email case issues when restoring user pointers.
(imported from commit 84d3288dffc1cb010d8cd2a749fe71aa2a4d0df3)
This commit is contained in:
parent
899cbabe23
commit
bda420a0f9
|
@ -11,7 +11,7 @@ def dump():
|
||||||
|
|
||||||
def restore(change):
|
def restore(change):
|
||||||
for (email, pointer) in simplejson.loads(file("dumped-pointers").read()):
|
for (email, pointer) in simplejson.loads(file("dumped-pointers").read()):
|
||||||
u = UserProfile.objects.get(user__email=email)
|
u = UserProfile.objects.get(user__email__iexact=email)
|
||||||
print "%s: pointer %s => %s" % (email, u.pointer, pointer)
|
print "%s: pointer %s => %s" % (email, u.pointer, pointer)
|
||||||
if change:
|
if change:
|
||||||
u.pointer = pointer
|
u.pointer = pointer
|
||||||
|
|
Loading…
Reference in New Issue