From 875b2645e0a51e31c0e86381b582b68f3f27c858 Mon Sep 17 00:00:00 2001 From: Stefano Pigozzi Date: Tue, 11 Aug 2015 14:23:16 +0200 Subject: [PATCH] =?UTF-8?q?...perch=C3=A8=20delle=20stringhe,=20perch?= =?UTF-8?q?=C3=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- royalbot.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/royalbot.py b/royalbot.py index 9d2276b7..1befcff6 100644 --- a/royalbot.py +++ b/royalbot.py @@ -184,9 +184,9 @@ while(True): #Trova l'username della persona. name = osu[0]['username'] #Trova i pp in ogni modalità - osupp = math.floor(osu[0]['pp_raw']) - taikopp = math.floor(taiko[0]['pp_raw']) - ctbpp = math.floor(ctb[0]['pp_raw']) - osumaniapp = math.floor(osumania[0]['pp_raw']) + osupp = math.floor(float(osu[0]['pp_raw'])) + taikopp = math.floor(float(taiko[0]['pp_raw'])) + ctbpp = math.floor(float(ctb[0]['pp_raw'])) + osumaniapp = math.floor(float(osumania[0]['pp_raw'])) #Manda il messaggio sendMessage(name + " ha:" + unichr(10) + osupp + "pp su Osu!" + unichr(10) + taikopp + "pp su Taiko" + unichr(10) + ctbpp + "pp su Catch the Beat" + unichr(10) + osumaniapp + "pp su Osu!mania") \ No newline at end of file