mirror of
https://github.com/SickGear/SickGear.git
synced 2025-01-07 10:33:38 +00:00
Change the episodes downloaded stat to display e.g. 2843 / 2844 as 99.9% instead of rounding to 100%.
This commit is contained in:
parent
0736ade54d
commit
d20afa0515
2 changed files with 3 additions and 1 deletions
|
@ -56,6 +56,7 @@
|
||||||
config/Post Processing/File Handling
|
config/Post Processing/File Handling
|
||||||
* Remove redundant "Skip remove detection" from the config/Post Processing/File Handling page
|
* Remove redundant "Skip remove detection" from the config/Post Processing/File Handling page
|
||||||
* Change to highlight the current selected item in combos on page config/Post Processing
|
* Change to highlight the current selected item in combos on page config/Post Processing
|
||||||
|
* Change the episodes downloaded stat to display e.g. 2843 / 2844 as 99.9% instead of rounding to 100%
|
||||||
|
|
||||||
[develop changelog]
|
[develop changelog]
|
||||||
* Fix traceback error when using the menu item Manage/Update Kodi
|
* Fix traceback error when using the menu item Manage/Update Kodi
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
#import sickbeard
|
#import sickbeard
|
||||||
#import datetime
|
#import datetime
|
||||||
|
#import re
|
||||||
#from sickbeard import db, sbdatetime
|
#from sickbeard import db, sbdatetime
|
||||||
#from sickbeard.common import *
|
#from sickbeard.common import *
|
||||||
|
|
||||||
|
@ -37,7 +38,7 @@
|
||||||
#set $ep_downloaded = 0
|
#set $ep_downloaded = 0
|
||||||
#set $ep_total = 0
|
#set $ep_total = 0
|
||||||
#end if
|
#end if
|
||||||
#set $ep_percentage = '' if $ep_total == 0 else '(<span class="footerhighlight">{:.1%}</span>)'.format(float($ep_downloaded)/float($ep_total))
|
#set $ep_percentage = '' if $ep_total == 0 else '(<span class="footerhighlight">%s%%</span>)' % re.sub(r'(\d+)(\.\d)\d+', r'\1\2', str((float($ep_downloaded)/float($ep_total))*100))
|
||||||
|
|
||||||
#try
|
#try
|
||||||
#set $localRoot = $sbRoot
|
#set $localRoot = $sbRoot
|
||||||
|
|
Loading…
Reference in a new issue