Fixed the bug that causes tagging all the posts' type as null
This commit is contained in:
parent
a8ccb170c1
commit
788a2c72e8
|
@ -349,16 +349,15 @@ def redditSearcher(posts,SINGLE_POST=False):
|
|||
except AttributeError:
|
||||
continue
|
||||
|
||||
postsFile.add({subCount:[details]})
|
||||
details = checkIfMatching(submission)
|
||||
result = checkIfMatching(submission)
|
||||
|
||||
if details is not None:
|
||||
if not details["postType"] == "self":
|
||||
orderCount += 1
|
||||
printSubmission(submission,subCount,orderCount)
|
||||
subList.append(details)
|
||||
else:
|
||||
postsFile.add({subCount:[details]})
|
||||
if result is not None:
|
||||
details = result
|
||||
orderCount += 1
|
||||
printSubmission(submission,subCount,orderCount)
|
||||
subList.append(details)
|
||||
|
||||
postsFile.add({subCount:[details]})
|
||||
|
||||
if not len(subList) == 0:
|
||||
print(
|
||||
|
|
Loading…
Reference in a new issue