mirror of
https://github.com/Tautulli/Tautulli.git
synced 2025-07-12 16:22:57 -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
|
||||
|
||||
|
||||
def helper_round(n, ndigits):
|
||||
def helper_round(n, ndigits=None):
|
||||
try:
|
||||
return round(n, ndigits)
|
||||
except (ValueError, TypeError):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue