Skip logging posts that were sent in past
This commit is contained in:
parent
5c242e3428
commit
da2445f04f
1 changed files with 1 additions and 1 deletions
|
@ -102,9 +102,9 @@ async def _stream(sub: Sub, bot: Snake) -> None:
|
|||
if not post:
|
||||
logger.debug(f"Got None for post in {sub.display_name}")
|
||||
continue
|
||||
logger.debug(f"Got new post in {sub.display_name}")
|
||||
if post.created_utc < now.timestamp():
|
||||
continue
|
||||
logger.debug(f"Got new post in {sub.display_name}")
|
||||
follows = SubredditFollow.find(q(display_name=sub.display_name))
|
||||
follows_to_delete = []
|
||||
num_follows = 0
|
||||
|
|
Loading…
Add table
Reference in a new issue