Skip to content

Commit 535e236

Browse files
committed
Make spamming status apparent to users
1 parent c71c12e commit 535e236

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/button.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
db = sqlite3.connect(app_dir + '/../database.db')
1919
#TODO Change this to 1800 for production
2020
time_in_round = 1800
21-
min_time_between_clicks = 2.0 # float seconds
21+
min_time_between_clicks = 1.0 # float seconds
2222
spam_ban_time = 10.0 # float seconds
2323
flag_index = 0
2424

@@ -69,12 +69,12 @@ def post(self):
6969
self.set_spamming(user_id, 0)
7070
else:
7171
self.set_click_time(user_id, now)
72-
raise tornado.web.HTTPError(403)
72+
raise tornado.web.HTTPError(403, reason="STAAAHHHHP")
7373
else:
7474
if (since_last_click < min_time_between_clicks):
7575
self.set_click_time(user_id, now)
7676
self.set_spamming(user_id, 1)
77-
raise tornado.web.HTTPError(403)
77+
raise tornado.web.HTTPError(403, reason="CHILL")
7878

7979
self.set_click_time(user_id, now)
8080

0 commit comments

Comments
 (0)