From ab1a38998d7c7a8377a2cd3d1f87b5c285203450 Mon Sep 17 00:00:00 2001 From: Stefano Pigozzi Date: Fri, 4 Mar 2016 19:17:05 +0100 Subject: [PATCH] Rinominata getsinglestaticdata --- bot.py | 2 +- lol.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/bot.py b/bot.py index 9596002c..92e6a24d 100644 --- a/bot.py +++ b/bot.py @@ -617,7 +617,7 @@ while True: str(ora.tm_year) + " " + str(ora.tm_hour) + ":" + str(ora.tm_min) + "`\n" r = lol.getfreerotation() for champion in r: - staticdata = lol.getsinglestaticdata(champion['id']) + staticdata = lol.getchampionstaticdata(champion['id']) lolfreestring += "*" + staticdata['name'] + "* " + staticdata['title'] + '\n' print("Completato.") telegram.sendmessage(lolfreestring, sentin, source) diff --git a/lol.py b/lol.py index 583019c2..0217c4b8 100644 --- a/lol.py +++ b/lol.py @@ -4,7 +4,7 @@ import filemanager lolkey = filemanager.readfile("lolapi.txt") -def getsinglestaticdata(cid, extra=None): +def getchampionstaticdata(cid, extra=None): parametri = { 'api_key': lolkey, 'region': "euw",