We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents fd80242 + 23619a9 commit e2900a5Copy full SHA for e2900a5
datapath.py
@@ -10,6 +10,7 @@
10
# Time range for sending messages loaded from settings.toml
11
TIME_TO_SEND_START = dynaconfig.settings["TIMINIGS"]["TIME_TO_SEND_START"]
12
TIME_TO_SEND_END = dynaconfig.settings["TIMINIGS"]["TIME_TO_SEND_END"]
13
+SENDING_INTERVAL = dynaconfig.settings["TIMINIGS"]["SENDING_INTERVAL"]
14
15
# Logging
16
logging.basicConfig(
@@ -76,7 +77,7 @@ def send_news_to_telegram(message):
76
77
else:
78
for news in data_from_db:
79
send_news_to_telegram(news)
- time.sleep(3)
80
+ time.sleep(SENDING_INTERVAL)
81
82
logging.info("Still waiting to send.")
83
0 commit comments