From 6d6ed4e3a5aa8b71f636daad1be8890d0eba5ecc Mon Sep 17 00:00:00 2001 From: Ryan Luu Date: Tue, 6 Aug 2024 00:08:10 -0700 Subject: [PATCH] Fix date being wrong Signed-off-by: Ryan Luu --- src/instawebhooks/__main__.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/instawebhooks/__main__.py b/src/instawebhooks/__main__.py index 2dc21e3..218bce2 100644 --- a/src/instawebhooks/__main__.py +++ b/src/instawebhooks/__main__.py @@ -224,8 +224,8 @@ async def check_for_new_posts(): Instaloader().context, args.instagram_username ).get_posts() - since = datetime.now() - timedelta(seconds=args.refresh_interval) - until = datetime.now() + since = datetime.now() + until = datetime.now() - timedelta(seconds=args.refresh_interval) new_posts_found = False