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

19 lines
469 B
Python
Raw Permalink Normal View History

2018-12-09 05:15:56 +00:00
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")