about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorKartik K. Agaram <vc@akkartik.com>2021-08-10 04:55:19 -0700
committerKartik K. Agaram <vc@akkartik.com>2021-08-10 04:55:19 -0700
commit49352e16164e34a329193cc49d5b121fbbd7b529 (patch)
tree9ba2f7534b3578d4137a094af426da9ec180da19
parent7f972dfc7c433bd0a3cf4a93c8c62bbb392d69b5 (diff)
downloadmu-49352e16164e34a329193cc49d5b121fbbd7b529.tar.gz
.
-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'])):
4dea3'>^
f07bb12f ^















62cd83ba ^
f07bb12f ^

62cd83ba ^
f07bb12f ^






62cd83ba ^
f07bb12f ^


62cd83ba ^

f07bb12f ^
a614f048 ^
ef0157ff ^
f07bb12f ^


62cd83ba ^
f07bb12f ^


62cd83ba ^
f07bb12f ^
62cd83ba ^
b3556b21 ^
62cd83ba ^
b3556b21 ^
f07bb12f ^
62cd83ba ^
b3556b21 ^

f07bb12f ^

a614f048 ^
f07bb12f ^





a614f048 ^



f07bb12f ^























1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115