fix crypto sigfigs

This commit is contained in:
iou1name 2018-12-31 01:20:25 -05:00
parent 7c906ff595
commit 036200f1f7

View File

@ -34,7 +34,7 @@ def crypto(bot, trigger):
msg += f"\x0310Symbol\x03: \x0312{data['show_symbol']}\x03 | "
msg += f"\x0310Rank\x03: \x0312{data['rank']}\x03 | "
msg += f"\x0310Price\x03: \x0308"
msg += re.sub(r'(^.+\.\d\d).*', r'\1', data['price']) + "\x03 | "
msg += data['price'] + "\x03 | "
msg += f"\x0310Markets\x03: \x0312{len(data['markets'])}\x03 | "
msg += f"\x0310Market Cap\x03: \x0308"
msg += re.sub(r'(^.+\.\d\d).*', r'\1', data['market_cap']) + "\x03"