fix 500 err

master
Aevann 2024-04-27 00:23:37 +03:00
parent bd05a854a1
commit 57ca35af44
1 changed files with 1 additions and 1 deletions

View File

@ -61,7 +61,7 @@ def calc_users():
else:
ddos_threshold = 1000
if g.loggedin_counter + g.loggedout_counter > ddos_threshold or (SITE == 'watchpeopledie.tv' and SITE_SETTINGS['login_required']):
if g.loggedin_counter + g.loggedout_counter > ddos_threshold or (SITE == 'watchpeopledie.tv' and get_setting('login_required')):
if not get_setting('under_attack'):
set_setting('under_attack', True)
set_security_level('under_attack')