climu / openstudyroom

Website for the Open Study Room online go/baduk/weiqi community.
https://openstudyroom.org
GNU General Public License v3.0
67 stars 33 forks source link

league games scraped in wrong order #351

Open alexmitrani opened 5 years ago

alexmitrani commented 5 years ago

I recently played three 9x9 games with AdamReal on OGS, and according to league rules a maximum of 2 games between the same opponents will count for the league. The issue is that games 2 and 3 have been added to the league, when it should have added games 1 and 2. In this case it makes no difference to the league table as the results were alemitrani-AdamReal-alemitrani, but in other cases it could make a difference.

thanks.

alexmitrani commented 5 years ago

a suggestion. the ogs filenames seem to indicate chronological order - the numbers go up over time. At the moment the process seems to be scraping files in the order of appearance on the ogs game history page. This will be in reverse chronological order. Perhaps they could be read in and sorted in ascending order of file name - this would be chronological order.

climu commented 5 years ago

Right!