Update Discord, Slack, and Hipchat cards

This commit is contained in:
JonnyWong16 2017-01-27 23:12:46 -08:00
parent 651f4ebf5f
commit 70f006d06d
2 changed files with 73 additions and 34 deletions

View file

@ -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: