diff options
author | denis-kostin <denis-kostin@pereulok.net.ru> | 2015-09-11 22:21:11 +0300 |
---|---|---|
committer | denis-kostin <denis-kostin@pereulok.net.ru> | 2015-09-11 22:21:11 +0300 |
commit | a7e7cdf37ad7b74be391225ebb3dc0916850abcf (patch) | |
tree | f70f7095d94ee9395dab9f74f287367ba1f63274 | |
parent | 302b337ef2110fd4ab72dcf8d7f04baf1104a3f4 (diff) |
fix: wot api requests
-rw-r--r-- | plugins/wot.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/plugins/wot.py b/plugins/wot.py index da0fd9b..bfa5fe8 100644 --- a/plugins/wot.py +++ b/plugins/wot.py @@ -75,11 +75,11 @@ def wot(type, jid, nick, text): pdata = wot_api.fetch('wot/account/info', 'account_id=%s&fields=nickname,statistics,global_rating,last_battle_time,logout_at' % player_id) stat = pdata[player_id]['statistics'] - claninfo = wot_api.fetch('wot/clan/membersinfo', 'member_id=%s' % player_id) + claninfo = wot_api.fetch('wgn/clans/membersinfo', 'account_id=%s' % player_id) if claninfo[player_id]: clan_id = str(claninfo[player_id]['clan_id']) - cdata = wot_api.fetch('wot/clan/info', 'clan_id=%s&fields=abbreviation' % clan_id) + cdata = wot_api.fetch('wgn/clans/info', 'clan_id=%s&fields=abbreviation' % clan_id) cname = cdata[clan_id]['abbreviation'] except: pdata = None @@ -334,7 +334,7 @@ def wotclan(type, jid, nick, text): text = text.strip().upper() if text: try: - data = wot_api.fetch('wot/clan/list/', 'search=%s' % text) + data = wot_api.fetch('wgn/clans/list/', 'search=%s' % text) claninfo = [i for i in data if i['abbreviation'] == text] if claninfo: claninfo = claninfo[0] |