|
|
@ -7,7 +7,7 @@ import time
|
|
|
|
|
|
|
|
|
|
|
|
# Easy debug
|
|
|
|
# Easy debug
|
|
|
|
from icecream import ic
|
|
|
|
from icecream import ic
|
|
|
|
#ic.disable() # Turn off
|
|
|
|
ic.disable() # Turn off
|
|
|
|
|
|
|
|
|
|
|
|
# Limit for requests
|
|
|
|
# Limit for requests
|
|
|
|
LTIME = cur_time = time.monotonic()
|
|
|
|
LTIME = cur_time = time.monotonic()
|
|
|
@ -115,7 +115,7 @@ class RequestHandler(BaseHTTPRequestHandler):
|
|
|
|
# Admin's token
|
|
|
|
# Admin's token
|
|
|
|
if token[0] == tokens["admin"][0]:
|
|
|
|
if token[0] == tokens["admin"][0]:
|
|
|
|
pass
|
|
|
|
pass
|
|
|
|
elif token[0] in tokens["premium"] and len(params) < 10000:
|
|
|
|
elif token[0] in tokens["premium"] and len(params) < 13400:
|
|
|
|
pass
|
|
|
|
pass
|
|
|
|
else:
|
|
|
|
else:
|
|
|
|
return 0
|
|
|
|
return 0
|
|
|
|