]> 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)
committerAnt Zucaro <azucaro@gmail.com>
Sat, 22 Dec 2012 20:59:17 +0000 (15:59 -0500)
commit16dc6daf4c4f6132e41f1683d036daafeb2afdc2
treeb90f9ffa4125e8a6c9d9c43b2a9bd6e5b75269f7
parent2ea80ee09924a7098bf8006186bc97c6e417d2e2
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