mirror of
https://github.com/Tautulli/Tautulli.git
synced 2025-07-08 06:00:51 -07:00
Update Discord, Slack, and Hipchat cards
This commit is contained in:
parent
651f4ebf5f
commit
70f006d06d
2 changed files with 73 additions and 34 deletions
|
@ -453,6 +453,12 @@ def get_percent(value1, value2):
|
|||
|
||||
return math.trunc(percent)
|
||||
|
||||
def hex_to_int(hex):
|
||||
try:
|
||||
return int(hex, 16)
|
||||
except (ValueError, TypeError):
|
||||
return 0
|
||||
|
||||
def parse_xml(unparsed=None):
|
||||
if unparsed:
|
||||
try:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue