about summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rw-r--r--browse_slack/convert_slack.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/browse_slack/convert_slack.py b/browse_slack/convert_slack.py
index 99a4af1b..84358d2d 100644
--- a/browse_slack/convert_slack.py
+++ b/browse_slack/convert_slack.py
@@ -32,6 +32,8 @@ from os import listdir
 from os.path import isfile, join, basename, splitext
 from urllib.parse import urlparse
 
+channels = {channel['id']: channel['name'] for channel in json.load(open('channels.json'))}
+
 items = []
 
 def look_up_ppm_image(url):
@@ -57,8 +59,6 @@ def load_users():
                 user_id[user['id']] = length
                 length += 1
 
-channels = {channel['id']: channel['name'] for channel in json.load(open('channels.json'))}
-
 def contents(filename):
     with open(filename) as f:
         for item in json.load(f):