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 84358d2d..8db14699 100644
--- a/browse_slack/convert_slack.py
+++ b/browse_slack/convert_slack.py
@@ -34,8 +34,6 @@ 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):
     file_root = splitext(basename(urlparse(url).path))[0]
     filename = f"images/ppm/{file_root}.ppm"
@@ -59,6 +57,8 @@ def load_users():
                 user_id[user['id']] = length
                 length += 1
 
+items = []
+
 def contents(filename):
     with open(filename) as f:
         for item in json.load(f):