ThatRickGuy / PGSwiss

A Swiss Pairing tournament application designed for Warmachine/Hordes events
10 stars 1 forks source link

Opponents listing seems wrong in xml (after crash) #75

Closed sirjoekcb closed 10 years ago

sirjoekcb commented 10 years ago

This event caused the app to crash (https://github.com/ThatRickGuy/PGSwiss/issues/73), then I opened the same event and it crashed again in the same spot. Now some of the opponents are listed twice for the same player, and some of them have three opponents (in addition to the duplicates) listed even though the event should have ended after two rounds. I have not tested in a non-crash scenario.

ThatRickGuy commented 10 years ago

The duplicate opponents isn't a major issue. It is a list of names that we just check if it contains a potential opponent's name. I've added code to prevent the addition of duplicates though, so if you do run into a crash, reloading and regenerating pairings wont introduce duplicate opponents.