From 898a0ba42dce0950f1aca4218c9d88fae10ce270 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Patrick=20M=C3=BCller?= Date: Thu, 11 Mar 2021 19:22:48 +0100 Subject: [PATCH] #5: Sending status code in the website error notification --- main.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/main.py b/main.py index 22222af..62182f6 100644 --- a/main.py +++ b/main.py @@ -36,8 +36,8 @@ def runPings(): else: resTuple = (website['website_id'], False, statusCode) telegram.sendMessage(users[website['admin_id']]['telegram_id'], ( - 'Your website {} ({}) is not reachable at the moment. Maybe give it a check.' - ).format(website['name'], website['url'])) + 'Your website {} ({}) is not reachable at the moment (Code {}). Maybe give it a check.' + ).format(website['name'], website['url'], statusCode)) websitePingResults.append(resTuple) cur = conn.cursor()