.HIDE. DIGITARE

This commit is contained in:
Nyo 2016-06-02 18:41:12 +02:00
parent adb72b23b4
commit feee262ed1
2 changed files with 5 additions and 1 deletions

View File

@ -50,6 +50,7 @@ import traceback
class handler(requestHelper.asyncRequestHandler):
def asyncPost(self):
glob.meme.acquire()
try:
# Track time if needed
if glob.requestTime == True:
@ -57,7 +58,7 @@ class handler(requestHelper.asyncRequestHandler):
st = datetime.datetime.now()
# Client's token string and request data
requestTokenString = self.request.headers.get('osu-token')
requestTokenString = self.request.headers.get("osu-token")
requestData = self.request.body
# Server's token string and request data
@ -191,6 +192,7 @@ class handler(requestHelper.asyncRequestHandler):
discordBotHelper.sendConfidential(msg)
finally:
self.finish()
glob.meme.release()
def asyncGet(self):
html = "<html><head><title>MA MAURO ESISTE?</title><style type='text/css'>body{width:30%}</style></head><body><pre>"

View File

@ -3,6 +3,7 @@
from objects import tokenList
from objects import channelList
from objects import matchList
import threading
VERSION = "0.9"
@ -16,3 +17,4 @@ memes = True
restarting = False
pool = None
requestTime = False
meme = threading.Lock()