From 26190bd38d616524757eaf9a64da66ad3248a500 Mon Sep 17 00:00:00 2001 From: libertysoft3 Date: Tue, 12 Nov 2019 02:26:21 -0800 Subject: [PATCH] bugfix --- write_html.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/write_html.py b/write_html.py index 9dc158a..4a4cf61 100755 --- a/write_html.py +++ b/write_html.py @@ -135,12 +135,12 @@ def generate_html(min_score=0, min_comments=0, hide_deleted_comments=False): if validate_link(l, min_score, min_comments): valid_sub_links.append(l) - # collect links for user pages - # TODO: this is the least performant bit. load and generate user pages user by user instead. - l['subreddit'] = sub - if l['author'] not in user_index.keys(): - user_index[l['author']] = [] - user_index[l['author']].append(l) + # collect links for user pages + # TODO: this is the least performant bit. load and generate user pages user by user instead. + l['subreddit'] = sub + if l['author'] not in user_index.keys(): + user_index[l['author']] = [] + user_index[l['author']].append(l) d += delta write_subreddit_pages(sub, subs, valid_sub_links, stat_sub_filtered_links, stat_sub_comments) write_subreddit_search_page(sub, subs, valid_sub_links, stat_sub_filtered_links, stat_sub_comments)