Closed UEWBot closed 1 year ago
When we import from the WDD, we create PlayerGameResults, which record the results of a single game from one player's perspective. So there's no "historical game" in the database for these. Finding historical games between specified players therefore means matching up attributes (tournament_name, game_name, and date) unless we re-structure the database.
New page added. Now we just need to link to it from somewhere
I think we need a new form to select an opponent, which should be trivial. Need to be able to specify the QuerySet to use (either all Players or all Players playing in a specified Tournament - can do that by having init() take an optional Tournament parameter).
Then we add that form to both the TournamentPlayer details page and the Player background page.
We already have PlayerForm. Just need to add an init() method so we can modify the QuerySet.
With all the tournament games played by all the players in the database, it should be possible to find all the times a given pair of players has played before and what the results were. That seems like interesting background.