about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorKartik K. Agaram <vc@akkartik.com>2021-08-10 04:16:36 -0700
committerKartik K. Agaram <vc@akkartik.com>2021-08-10 04:16:36 -0700
commit12d37bf5b9ca7e39f200d165fa19f6b87b959311 (patch)
tree8176a1e739fcd01a966dddaf00749da90457325a
parentd94eb48b92dd6f98a79ede01394f6369372813e5 (diff)
downloadmu-12d37bf5b9ca7e39f200d165fa19f6b87b959311.tar.gz
.
-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):