Merge pull request #7 from depreciate/master

ddLOKL
This commit is contained in:
Josh Smith 2019-02-11 06:41:15 -05:00 committed by GitHub
commit 90a2b8f12c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -43,6 +43,7 @@ class handler(requestsManager.asyncRequestHandler):
@tornado.gen.engine @tornado.gen.engine
#@sentry.captureTornado #@sentry.captureTornado
def asyncPost(self): def asyncPost(self):
newCharts = self.request.uri == "/web/osu-submit-modular-selector.php"
try: try:
# Resend the score in case of unhandled exceptions # Resend the score in case of unhandled exceptions
keepSending = True keepSending = True
@ -499,7 +500,7 @@ class handler(requestsManager.asyncRequestHandler):
scoreUtils.newFirst(s.scoreID, userID, s.fileMd5, s.gameMode, isRelaxing) scoreUtils.newFirst(s.scoreID, userID, s.fileMd5, s.gameMode, isRelaxing)
# Write message to client # Write message to client
self.write(msg) self.write(output)
else: else:
# No ranking panel, send just "ok" # No ranking panel, send just "ok"
self.write("ok") self.write("ok")