Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/isida/4.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordenis-kostin <denis-kostin@pereulok.net.ru>2015-09-13 01:47:59 +0300
committerdenis-kostin <denis-kostin@pereulok.net.ru>2015-09-13 01:47:59 +0300
commit453dd95b0dfc8f2f32926bf5d2f4aed3699100a7 (patch)
tree6ffe718513b2c461a5748796e3b5a09956e00f7d
parent6b7254ff2895b7521e078f9271513ea32017c3b3 (diff)
fix: wot player clan info
-rw-r--r--plugins/wot.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/plugins/wot.py b/plugins/wot.py
index 924d9e8..c24e78a 100644
--- a/plugins/wot.py
+++ b/plugins/wot.py
@@ -78,9 +78,9 @@ def wot(type, jid, nick, text):
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('wgn/clans/info', 'clan_id=%s&fields=abbreviation' % clan_id)
- cname = cdata[clan_id]['abbreviation']
+ clan_id = str(claninfo[player_id]['clan']['clan_id'])
+ cdata = wot_api.fetch('wgn/clans/info', 'clan_id=%s&fields=tag' % clan_id)
+ cname = cdata[clan_id]['tag']
except:
pdata = None