about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorKartik K. Agaram <vc@akkartik.com>2021-08-10 04:20:10 -0700
committerKartik K. Agaram <vc@akkartik.com>2021-08-10 04:20:10 -0700
commit58c62538ea659dba981622be80b79e69251d2884 (patch)
tree7484be239ae2eb2ed6610c74ff3008d31c3c5c50
parent4fd5514a5930fcdebfd6367efb4839ff420b5ca7 (diff)
downloadmu-58c62538ea659dba981622be80b79e69251d2884.tar.gz
.
-rw-r--r--browse_slack/convert_slack.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/browse_slack/convert_slack.py b/browse_slack/convert_slack.py
index 57be3681..670f43c5 100644
--- a/browse_slack/convert_slack.py
+++ b/browse_slack/convert_slack.py
@@ -42,8 +42,8 @@ def look_up_ppm_image(url):
             return f.read()
 
 user_id = {}  # name -> index
-length = 0
 with open('users.json') as f:
+    length = 0
     for user in json.load(f):
         if 'real_name' not in user:
             user['real_name'] = ''