]> 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)
committerAnt Zucaro <azucaro@gmail.com>
Mon, 29 Oct 2012 15:49:03 +0000 (11:49 -0400)
commit6e7efa8ec4fc8e7149b657cb7dfa3a546872486f
treee42b36aa0826cbcb57bca250db3b7b333c8a4192
parent774dc7b4f23cbbee1ff45fb879b94ff1e5a0d1dc
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