Only search titles when finding previous daily post.
This commit is contained in:
parent
ee52278399
commit
3c972da834
1 changed files with 2 additions and 1 deletions
|
@ -23,4 +23,5 @@ def submit_post(title, text, subreddit) -> Submission:
|
|||
|
||||
def get_previous_daily_post(subreddit) -> Submission:
|
||||
logger.info("Getting previous daily post from r/%s", subreddit)
|
||||
return next(praw.subreddit(subreddit).search("daily release", sort="new", time_filter="week"))
|
||||
return next(praw.subreddit(subreddit).search('title:"daily releases"', sort="new", syntax="lucene",
|
||||
time_filter="week"))
|
||||
|
|
Reference in a new issue