]> de.git.xonotic.org Git - xonotic/xonstat.git/commit
Simplify the rank table calculations. Woohoo, negative LOC!
authorAnt Zucaro <azucaro@gmail.com>
Sat, 22 Dec 2012 20:59:17 +0000 (15:59 -0500)
committerJan Behrens <zykure@web.de>
Sun, 23 Dec 2012 14:18:35 +0000 (15:18 +0100)
commitfdda891447025c8d24c0f0806f3bb21290ddf004
tree345b62b80628d5f3f082f4693b00a3054c5e91cb
parent81bb3ad57de2e683e8cf0a43af629b77d5b74deb
Simplify the rank table calculations. Woohoo, negative LOC!

Before the main view was running three separate, similar queries
to grab the rank data for the three game types shown on the page.
This was factored out into a separate function that can be called
and cached (currently hourly_term). Also if no ranks are available,
don't show tables filled with '-' characters, but rather an
informative message instead.
xonstat/templates/main_index.mako
xonstat/views/main.py