From 624c3b498a25099d161c860bcf0233584a799de9 Mon Sep 17 00:00:00 2001 From: scoobybejesus Date: Tue, 2 Jan 2018 22:25:54 -0500 Subject: [PATCH] fix 'top' bug --- price.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/price.py b/price.py index 549eb2c..d7a8e37 100644 --- a/price.py +++ b/price.py @@ -367,7 +367,7 @@ def top(bot, trigger): mylist = range(1,limit + 1) if limit > 10: bot.say("Too high! Max is 10!") - else if limit < 1: + elif limit < 1: bot.say("Dude...") else: try: @@ -389,7 +389,7 @@ def top(bot, trigger): price_btc = float(coin['price_btc']) market_cap_usd = float(coin['market_cap_usd']) if market_cap_usd >= 1000000000: - market_cap_short = int(round(market_cap_usd,-9)/1000000000 + market_cap_short = int(int(round(market_cap_usd,-9))/int(1000000000)) rounded_mcap = str(market_cap_short)+"B" else: rounded_mcap = "tiny"