mirror of
https://github.com/Tautulli/Tautulli.git
synced 2025-07-10 15:32:38 -07:00
Fix regression where duration not reported as min
This commit is contained in:
parent
eeb351e991
commit
0b301fff3f
2 changed files with 9 additions and 9 deletions
|
@ -378,14 +378,14 @@ def create_https_certificates(ssl_cert, ssl_key):
|
|||
def cast_to_int(s):
|
||||
try:
|
||||
return int(s)
|
||||
except ValueError:
|
||||
return -1
|
||||
except (ValueError, TypeError):
|
||||
return 0
|
||||
|
||||
def cast_to_float(s):
|
||||
try:
|
||||
return float(s)
|
||||
except ValueError:
|
||||
return -1
|
||||
except (ValueError, TypeError):
|
||||
return 0
|
||||
|
||||
def convert_xml_to_json(xml):
|
||||
o = xmltodict.parse(xml)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue