openstudyroom icon indicating copy to clipboard operation
openstudyroom copied to clipboard

Non square boards would break scraper

Open climu opened this issue 4 years ago • 0 comments

We should change have a way to check if board size is square. At the moment a non square board would raise such:

  File "/openstudyroom/league/models.py", line 521, in parse
    prop = utils.parse_sgf_string(self.sgf_text)
  File "/openstudyroom/league/utils.py", line 175, in parse_sgf_string
    out['board_size'] = int(out['board_size'])
ValueError: invalid literal for int() with base 10: '19:9'

climu avatar Dec 26 '21 17:12 climu