Removing duplicate telegram message

This commit is contained in:
Patrick Müller 2021-04-20 15:35:41 +02:00
parent 3dad914171
commit fd89bf42c4

View File

@ -56,9 +56,6 @@ def runPings():
resTuple = (website['website_id'], True, statusCode) resTuple = (website['website_id'], True, statusCode)
else: else:
resTuple = (website['website_id'], False, statusCode) resTuple = (website['website_id'], False, statusCode)
telegram.sendMessage(users[website['admin_id']]['telegram_id'], (
'Your website {} ({}) is not reachable at the moment (Code {}). Maybe give it a check.'
).format(website['name'], website['url'], statusCode))
websitePingResults.append(resTuple) websitePingResults.append(resTuple)
# Send Telegram message if state has changed # Send Telegram message if state has changed