Skip to content

Commit

Permalink
feat: no longer will it use stickied posts
Browse files Browse the repository at this point in the history
  • Loading branch information
JasonLovesDoggo committed Jul 1, 2022
1 parent a719cfc commit a34b40f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions utils/subreddit.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,9 @@ def get_subreddit_undone(submissions: list, subreddit):
continue
except AttributeError:
print_substep("NSFW settings not defined. Skipping NSFW post...")
if submission.stickied:
print_substep("This post was pinned by moderators. Skipping...")
continue
return submission
print("all submissions have been done going by top submission order")
return get_subreddit_undone(
Expand Down

0 comments on commit a34b40f

Please sign in to comment.