diff options
author | Kartik K. Agaram <vc@akkartik.com> | 2021-08-10 04:08:15 -0700 |
---|---|---|
committer | Kartik K. Agaram <vc@akkartik.com> | 2021-08-10 04:08:15 -0700 |
commit | dd625f6caaceeb5cb0f1f645cd090d7f8f87f763 (patch) | |
tree | 98485b3e5453fdba2d3bfd8678c09b743fea90a0 | |
parent | 7784855c18d55026dd841454dd89db03370680e1 (diff) | |
download | mu-dd625f6caaceeb5cb0f1f645cd090d7f8f87f763.tar.gz |
.
-rw-r--r-- | browse_slack/convert_slack.py | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/browse_slack/convert_slack.py b/browse_slack/convert_slack.py index 1b7b39cc..a2e0c4ef 100644 --- a/browse_slack/convert_slack.py +++ b/browse_slack/convert_slack.py @@ -35,7 +35,6 @@ from urllib.parse import urlparse channels = {} user_id = {} # name -> index -users = [] items = [] @@ -49,7 +48,6 @@ def contents(filename): 'name': f"/{item['thread_ts']}/{item['ts']}", 'contents': item['text'], 'by': user_id[item['user']], -#? 'by': users[user_id[item['user']]]['avatar'][0:100], } else: # top-level post @@ -57,7 +55,6 @@ def contents(filename): 'name': f"/{item['ts']}", 'contents': item['text'], 'by': user_id[item['user']], -#? 'by': users[user_id[item['user']]]['avatar'][0:100], } except KeyError: stderr.write(repr(item)+'\n') @@ -86,12 +83,6 @@ def load_users(): 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 ''}])") -#? users.append({ -#? 'id': user['id'], -#? 'username': user['name'], -#? 'name': user['real_name'], -#? 'avatar': look_up_ppm_image(user['profile']['image_72']), -#? }) user_id[user['id']] = length length += 1 |