forked from rDrama/rDrama
1
0
Fork 0
master
Aevann1 2022-02-09 00:36:34 +02:00
parent 9386c7aacb
commit bb3e3d456f
1 changed files with 2 additions and 1 deletions

View File

@ -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'