Skip to content

Commit

Permalink
Fix loop
Browse files Browse the repository at this point in the history
  • Loading branch information
RyanLua authored Jul 23, 2024
1 parent 0152ed0 commit 3b470e2
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/instawebhooks/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -176,8 +176,9 @@ def main():
args.discord_webhook_url,
)

check_for_new_posts()
sleep(args.refresh_interval)
while True:
check_for_new_posts()
sleep(args.refresh_interval)


if __name__ == "__main__":
Expand Down

0 comments on commit 3b470e2

Please sign in to comment.