From 67ee1d54f0369e9213095415d8f2043c99887014 Mon Sep 17 00:00:00 2001 From: Aevann1 Date: Wed, 9 Feb 2022 00:40:28 +0200 Subject: [PATCH] xcv --- files/routes/admin.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/files/routes/admin.py b/files/routes/admin.py index 336c272a3..4586dbbfa 100644 --- a/files/routes/admin.py +++ b/files/routes/admin.py @@ -452,8 +452,7 @@ def reported_comments(v): @admin_level_required(2) def admin_home(v): with open('disable_signups', 'r') as f: x = f.read() - - print(requests.get(f'https://api.cloudflare.com/client/v4/zones/{CF_ZONE}/settings/security_level', headers=CF_HEADERS).json()) + response = requests.get(f'https://api.cloudflare.com/client/v4/zones/{CF_ZONE}/settings/security_level', headers=CF_HEADERS).json()['result']['value'] x2 = response == 'under_attack'