do not notify on portal disabled

This commit is contained in:
Karol Wypchlo 2021-09-10 16:23:05 +02:00
parent bfc2cbd3f3
commit 4fddbb2fc8
No known key found for this signature in database
GPG Key ID: C92C016317A964D0
1 changed files with 1 additions and 3 deletions

View File

@ -201,9 +201,7 @@ async def check_health():
message = ""
force_notify = False
if json_check["disabled"]:
message += "__Portal manually disabled!__ "
elif server_down:
if server_down and json_check["disabled"] == False:
message += "__Portal down!!!__ "
force_notify = True