From ddccebbc70a2d7ac47248c25e90075c831739ec0 Mon Sep 17 00:00:00 2001 From: Ali Parlakci Date: Tue, 10 Jul 2018 03:11:38 +0300 Subject: [PATCH] Not creating POSTS.json file properly bug fix --- src/searcher.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/searcher.py b/src/searcher.py index 6ac6fbe..ecb88e0 100644 --- a/src/searcher.py +++ b/src/searcher.py @@ -360,7 +360,7 @@ def redditSearcher(posts,SINGLE_POST=False): printSubmission(submission,subCount,orderCount) subList.append(details) - allPosts = {**allPosts,**details} + allPosts[subCount] = [details] postsFile.add(allPosts)