franciscoBSalgueiro / en-croissant

The Ultimate Chess Toolkit

Home Page:https://encroissant.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Download percentage exceeds 100%

Scoutboy06 opened this issue · comments

Describe the bug

When downloading games from chess.com, the "Downloaded" percentage can exceed 100%.

image

When looking at the file Scoutboy2206_chesscom.db3 under %appdata%/org.encroissant.app/db, open the "Games" table, and sort the table after "Moves" in decreasing order, I find this:

image

I'm not knowledged enough about the codebase to know if this is the cause of the bug, but I hope it may be of use.

Reproduction

  1. Open the "User" tab in the left navigation.
  2. Click on "Add Account +"
  3. In the pop-up, choose Chess.com as the website, type "Scoutboy2006" in the "Username" field, and press the "Add" submit button.
  4. Download the games from this account.

The result should be that over 100% of the games were downloaded (105.53% for me).

Platform and versions

OS

Edition: Windows 11 Home
Version: 23H2
Installed on: ‎2022-‎05-‎07
OS build: 22631.3447
Experience: Windows Feature Experience Pack 1000.22688.1000.0

Specs

Processor: 13th Gen Intel(R) Core(TM) i5-13600K 3.50 GHz
Installed RAM: 16,0 GB (15,7 GB usable)
System type: 64-bit operating system, x64-based processor

Stack trace

No response