File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 18
18
db = sqlite3 .connect (app_dir + '/../database.db' )
19
19
#TODO Change this to 1800 for production
20
20
time_in_round = 1800
21
- min_time_between_clicks = 2 .0 # float seconds
21
+ min_time_between_clicks = 1 .0 # float seconds
22
22
spam_ban_time = 10.0 # float seconds
23
23
flag_index = 0
24
24
@@ -69,12 +69,12 @@ def post(self):
69
69
self .set_spamming (user_id , 0 )
70
70
else :
71
71
self .set_click_time (user_id , now )
72
- raise tornado .web .HTTPError (403 )
72
+ raise tornado .web .HTTPError (403 , reason = "STAAAHHHHP" )
73
73
else :
74
74
if (since_last_click < min_time_between_clicks ):
75
75
self .set_click_time (user_id , now )
76
76
self .set_spamming (user_id , 1 )
77
- raise tornado .web .HTTPError (403 )
77
+ raise tornado .web .HTTPError (403 , reason = "CHILL" )
78
78
79
79
self .set_click_time (user_id , now )
80
80
You can’t perform that action at this time.
0 commit comments