.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): class handler(requestHelper.asyncRequestHandler):
def asyncPost(self): def asyncPost(self):
glob.meme.acquire()
try: try:
# Track time if needed # Track time if needed
if glob.requestTime == True: if glob.requestTime == True:
@ -57,7 +58,7 @@ class handler(requestHelper.asyncRequestHandler):
st = datetime.datetime.now() st = datetime.datetime.now()
# Client's token string and request data # 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 requestData = self.request.body
# Server's token string and request data # Server's token string and request data
@ -191,6 +192,7 @@ class handler(requestHelper.asyncRequestHandler):
discordBotHelper.sendConfidential(msg) discordBotHelper.sendConfidential(msg)
finally: finally:
self.finish() self.finish()
glob.meme.release()
def asyncGet(self): def asyncGet(self):
html = "<html><head><title>MA MAURO ESISTE?</title><style type='text/css'>body{width:30%}</style></head><body><pre>" 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 tokenList
from objects import channelList from objects import channelList
from objects import matchList from objects import matchList
import threading
VERSION = "0.9" VERSION = "0.9"
@ -16,3 +17,4 @@ memes = True
restarting = False restarting = False
pool = None pool = None
requestTime = False requestTime = False
meme = threading.Lock()