Skip to content
This repository has been archived by the owner on Jan 3, 2024. It is now read-only.

Commit

Permalink
Update lib.py
Browse files Browse the repository at this point in the history
  • Loading branch information
chand1012 authored Jun 5, 2019
1 parent d81002b commit 46940cf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib.py
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ def trump_counter(subs=['politics', 'POLITIC', 'news', 'neutralnews'], sample=10
for sub in subs:
submissions = reddit.subreddit(sub).hot(limit=samplesize)
for submission in submissions:
if 'trump' in submission.title.lower():
if 'trump' in submission.title.lower() or 'russia' in submission.title.lower():
count += 1

return [count, sample, samplesize, subs]
Expand Down

0 comments on commit 46940cf

Please sign in to comment.