Skip to content

Commit

Permalink
Allow multiple subs for Source user-upvoted-saved.
Browse files Browse the repository at this point in the history
  • Loading branch information
shadowmoose committed Jun 6, 2018
1 parent a3975bd commit 7022827
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions classes/sources/user_upvoted_saved_source.py
Expand Up @@ -10,9 +10,11 @@ def __init__(self):

def get_elements(self):
dat = self.data
for ele in reddit.user_liked_saved(dat['user'], dat['scan_upvoted'], dat['scan_saved'], dat['scan_sub']):
if self.check_filters(ele):
yield ele
for sub in dat['scan_sub'].split(','):
sub = sub.strip()
for ele in reddit.user_liked_saved(dat['user'], dat['scan_upvoted'], dat['scan_saved'], sub):
if self.check_filters(ele):
yield ele


def get_settings(self):
Expand Down

0 comments on commit 7022827

Please sign in to comment.