mikemccllstr/dominionstats — pull request #29 by DLu (2012-11-26 05:14:18+00:00)
Title: Quicker Player Page Loading

This patch fixes the issue of slow player pages in two ways.

First, some of the goals stuff was slow because it was making a lot of changes to a very long string. This has been fixed with some intermediate strings and additional constants. In the future, we should probably come up with a cleverer way of displaying all the goals.

Second, there is a new table called game_stats, which keeps a short record of each game (who won, where the winner sat). There is a function in game_stats.py that can be used to populate the table, however, at present, it is not set up to be run automatically. The DB values have already been filled in for all games played by hawaiian+shirts and rrenaud.