#5: Sending status code in the website error notification
This commit is contained in:
@@ -36,8 +36,8 @@ def runPings():
|
|||||||
else:
|
else:
|
||||||
resTuple = (website['website_id'], False, statusCode)
|
resTuple = (website['website_id'], False, statusCode)
|
||||||
telegram.sendMessage(users[website['admin_id']]['telegram_id'], (
|
telegram.sendMessage(users[website['admin_id']]['telegram_id'], (
|
||||||
'Your website {} ({}) is not reachable at the moment. Maybe give it a check.'
|
'Your website {} ({}) is not reachable at the moment (Code {}). Maybe give it a check.'
|
||||||
).format(website['name'], website['url']))
|
).format(website['name'], website['url'], statusCode))
|
||||||
websitePingResults.append(resTuple)
|
websitePingResults.append(resTuple)
|
||||||
|
|
||||||
cur = conn.cursor()
|
cur = conn.cursor()
|
||||||
|
|||||||
Reference in New Issue
Block a user