From 364660a7f5715acb878e4e67cc1e2a9e715bc323 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ga=C3=ABl=20Honorez?= Date: Tue, 2 Jan 2024 18:35:30 +0100 Subject: [PATCH] even more readeable --- Post_RSS_on_SubStack.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Post_RSS_on_SubStack.py b/Post_RSS_on_SubStack.py index a2749bd..09a7e76 100644 --- a/Post_RSS_on_SubStack.py +++ b/Post_RSS_on_SubStack.py @@ -62,6 +62,7 @@ class SubStackTask: days, seconds = divmod(seconds, 86400) hours, seconds = divmod(seconds, 3600) minutes, seconds = divmod(seconds, 60) + seconds = round(seconds) parts = [] if days > 0: @@ -100,7 +101,7 @@ class SubStackTask: while sleep_seconds > 0: # Check if the remaining time is a multiple of 3600 seconds formatted_duration = self.format_duration(sleep_seconds) - LOG.info(f"Waiting for {formatted_duration} seconds for next scan") + LOG.info(f"Waiting for {formatted_duration} for next scan") # Wait for some time before checking again await asyncio.sleep(min(sleep_seconds, 5 * 60))