mirror of https://github.com/zulip/zulip.git
populate_db: Remove potentially confusing parenthesis.
(imported from commit 9d4dd543f0787c4eae5f7c697b7edcab4cdc8a7c)
This commit is contained in:
parent
a6f744a11f
commit
4d607c79f1
|
@ -399,7 +399,7 @@ def restore_saved_messages():
|
|||
users = {}
|
||||
users_by_id = {}
|
||||
for user_profile in UserProfile.objects.select_related().all():
|
||||
users[(user_profile.user.email)] = user_profile
|
||||
users[user_profile.user.email] = user_profile
|
||||
users_by_id[user_profile.id] = user_profile
|
||||
for recipient in Recipient.objects.filter(type=Recipient.PERSONAL):
|
||||
user_recipients[users_by_id[recipient.type_id].user.email] = recipient
|
||||
|
|
Loading…
Reference in New Issue