HearthSim/HSTracker

After Upgrading, losses are being tracked as wins.

HiddenJester opened this issue · 2 comments

Describe the bug
After upgrading to 2.1.13 I've gone 0–3 (rough night), but my stats track my games as 3–0.

To Reproduce
Steps to reproduce the behavior:

  1. This morning I was 4–2 with my current deck.
  2. I upgraded to HSTracker 2.1.13
  3. I played (and lost) 3 games.
  4. HSTracker now shows my deck stats as 7–2 instead of 4-5. HSReplay correctly lists the replays as losses.

Game mode

  • [x ] Standard
  • Wild
  • Classic
  • Arena
  • Battlegrounds
  • Duels
  • Tavern Brawl
  • Dungeon Run/Book of Heroes/Book of Mercenaries
  • Single Player

Expected behavior
The accurate deck W/L is 4–5, not 7–2.

Version (please complete the following information):
2.1.13

Additional context
Log file

hstracker.log

Thank you for the report. I see I made a small typo in the code, I will get it sorted out, hopefully tomorrow.

Fixed in 2.1.14 by d67f71a