Skip to content

Commit e2900a5

Browse files
Merge pull request #15 from CoolCoderCarl/develop
Develop
2 parents fd80242 + 23619a9 commit e2900a5

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

datapath.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
# Time range for sending messages loaded from settings.toml
1111
TIME_TO_SEND_START = dynaconfig.settings["TIMINIGS"]["TIME_TO_SEND_START"]
1212
TIME_TO_SEND_END = dynaconfig.settings["TIMINIGS"]["TIME_TO_SEND_END"]
13+
SENDING_INTERVAL = dynaconfig.settings["TIMINIGS"]["SENDING_INTERVAL"]
1314

1415
# Logging
1516
logging.basicConfig(
@@ -76,7 +77,7 @@ def send_news_to_telegram(message):
7677
else:
7778
for news in data_from_db:
7879
send_news_to_telegram(news)
79-
time.sleep(3)
80+
time.sleep(SENDING_INTERVAL)
8081
else:
8182
logging.info("Still waiting to send.")
8283
else:

0 commit comments

Comments
 (0)