ilias4780 / fpl_statistics_ui_app

This is a python application providing users with a GUI in order to download the FPL database by using the FPL API URL and make statistical calculations.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Shorting raws by "selected_by_percent" criteria doesn't work as expected

geo-xar opened this issue · comments

Observations:
Numbers from 9 to 0 are shorted correctly
There is a persistent shorting issue with double-digit numbers i.e. 35%

The issue in more details:
When there is a double-digit percentage then it is shorted based on its first digit i.e 35% is shorted based on digit 3
As a result, the list contains percentages in the following order:
45%
4.3%
36%
3.2%
29%
2,0%

Solution:
Numbers should be converted from string to doubles and then shorted correctly no matter how many digits they have.

Fix will be included in next version, 1.7.0.

Version 1.7.0 pushed.