about summary refs log tree commit diff stats
path: root/browse_slack/convert_slack.py
diff options
context:
space:
mode:
Diffstat (limited to 'browse_slack/convert_slack.py')
-rw-r--r--browse_slack/convert_slack.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/browse_slack/convert_slack.py b/browse_slack/convert_slack.py
index b3ac3f92..a19717cc 100644
--- a/browse_slack/convert_slack.py
+++ b/browse_slack/convert_slack.py
@@ -39,16 +39,16 @@ def look_up_ppm_image(url):
         with open(filename) as f:
             return f.read()
 
-user_id = {}  # name -> index
+user_idx = {}
 with open('users.json') as f:
     for idx, user in enumerate(json.load(f)):
         if 'real_name' not in user:
             user['real_name'] = ''
         print(f"({json.dumps(user['id'])} \"@{user['name']}\" {json.dumps(user['real_name'])} [{look_up_ppm_image(user['profile']['image_72']) or ''}])")
-        user_id[user['id']] = idx
+        user_idx[user['id']] = idx
 
 def by(item):
-    return user_id[item['user']]
+    return user_idx[item['user']]
 
 for channel in json.load(open('channels.json')):
     for filename in sorted(listdir(channel['name'])):