From bb3e3d456f47ddc39fbb4239b04f488a1b6945f3 Mon Sep 17 00:00:00 2001 From: Aevann1 Date: Wed, 9 Feb 2022 00:36:34 +0200 Subject: [PATCH] xvc --- files/routes/admin.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/files/routes/admin.py b/files/routes/admin.py index 4586dbbfa..336c272a3 100644 --- a/files/routes/admin.py +++ b/files/routes/admin.py @@ -452,7 +452,8 @@ 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'