mirror of
https://github.com/Tautulli/Tautulli.git
synced 2025-07-13 08:42:59 -07:00
Helper round ndigits is optional
This commit is contained in:
parent
843f7bcabe
commit
93ed5c5eb8
1 changed files with 1 additions and 1 deletions
|
@ -537,7 +537,7 @@ def helper_divmod(a, b):
|
||||||
return 0
|
return 0
|
||||||
|
|
||||||
|
|
||||||
def helper_round(n, ndigits):
|
def helper_round(n, ndigits=None):
|
||||||
try:
|
try:
|
||||||
return round(n, ndigits)
|
return round(n, ndigits)
|
||||||
except (ValueError, TypeError):
|
except (ValueError, TypeError):
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue