]> de.git.xonotic.org Git - xonotic/xonstat.git/commit
Add storage of captimes and fastest caps.
authorAnt Zucaro <azucaro@gmail.com>
Mon, 29 Oct 2012 15:49:03 +0000 (11:49 -0400)
committerJan Behrens <zykure@web.de>
Sun, 23 Dec 2012 14:18:33 +0000 (15:18 +0100)
commitbcad7a55de4439d000b3515270473cd120377043
tree5ebdfb4ba1fbd1bc869e4e7f3220c0f5c0021721
parent1f151a5fa7e41cb8a2280d17a085f3ba9891a9c0
Add storage of captimes and fastest caps.

Fastest caps are recorded on a per-player basis in the game_stats
table, and the player's overall fastest cap on a given map is
stored in a new table, player_map_captimes.

One weird thing is if the constraint on game_id in the captimes
table is enabled, sqla throws an integrity error. For this reason
the constraint is disabled (commented out in xonstatdb) even though
it should be there. More investigation is needed.
xonstat/models.py
xonstat/views/submission.py