This repository has been archived on 2022-02-23. You can view files and clone it, but cannot push or open issues or pull requests.
lets/handlers/loadTestHandler.py
2018-12-09 00:15:56 -05:00

19 lines
469 B
Python

import tornado.gen
import tornado.web
from common.web import requestsManager
from objects import glob
class handler(requestsManager.asyncRequestHandler):
@tornado.web.asynchronous
@tornado.gen.engine
def asyncGet(self):
if not glob.debug:
self.write("Nope")
return
glob.db.fetchAll("SELECT SQL_NO_CACHE * FROM beatmaps")
glob.db.fetchAll("SELECT SQL_NO_CACHE * FROM users")
glob.db.fetchAll("SELECT SQL_NO_CACHE * FROM scores")
self.write("ibmd")