From 29d0528ec6ff9cf61af3bab2feb71dcb3625240a Mon Sep 17 00:00:00 2001 From: raylu Date: Tue, 22 Oct 2013 22:22:26 -0700 Subject: most expensive kills on homepage --- web/api.py | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'web/api.py') diff --git a/web/api.py b/web/api.py index 5f21441..70c0aff 100644 --- a/web/api.py +++ b/web/api.py @@ -39,12 +39,18 @@ class KillHandler(APIHandler): kill = db.queries.kill(kill_id) self.respond_json(kill) +class TopCostHandler(APIHandler): + def get(self): + kills = db.queries.top_cost() + self.respond_json(kills) + def start(): tornado.web.Application( handlers=[ (r'/search', SearchHandler), (r'/(alliance|corporation|character)/(.+)', KillListHandler), (r'/kill/(.+)', KillHandler), + (r'/top/cost', TopCostHandler), ], debug=config.debug, ).listen(config.api_port) -- cgit v1.2.3