From 9556ad6d668a5fdce6b7eaaa7a3ef709a777fcd2 Mon Sep 17 00:00:00 2001 From: scoobybejesus Date: Sat, 5 Aug 2017 00:08:55 -0400 Subject: [PATCH] Update price.py Quick error fix --- price.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/price.py b/price.py index e2fcdb4..932edf3 100644 --- a/price.py +++ b/price.py @@ -96,8 +96,8 @@ def krak(bot, trigger): else: coin = trigger.group(2).upper() try: - kraktrig = kraktrig[-1] #Didn't test. It's meant to delete the "'". Delete this line if unneeded. - kraktrig = kraktrig.append(coin)+"'" #Again, delete the "+" and after if unneeded. + kraktrig = kraktrig[:-1] #Didn't test. It's meant to delete the "'" from end of string. Delete this line if unneeded. + kraktrig = kraktrig.append(coin)+"'" #Again, delete the +"'" at the end, if unneeded. r=requests.get(kraktrig) j=r.json() stringtosay += coin + " at {0:.2f} on {1:.2f} 24 h BTC volume. ".format(float(j['result']['X'+str(coin)+'XXBT']['c'][0]), float(j['result']['X'+str(coin)+'XXBT']['v'][1]))