From 0651a6ddc303408d574e2459258936a49e08c39a Mon Sep 17 00:00:00 2001 From: Will Date: Wed, 9 Aug 2017 22:00:30 -0400 Subject: [PATCH] [Bank/Economy] Fix leaderboard bug due to previous config PR (#894) --- core/bank.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/bank.py b/core/bank.py index 3648f67bc..f62032f09 100644 --- a/core/bank.py +++ b/core/bank.py @@ -207,7 +207,7 @@ def get_guild_accounts(guild: discord.Guild) -> Generator[Account, None, None]: if is_global(): raise RuntimeError("The bank is currently global.") - accs = _conf.member(guild.owner).all() + accs = _conf.member(guild.owner).all_from_kind() for user_id, acc in accs.items(): acc_data = acc.copy() # There ya go kowlin acc_data['created_at'] = _decode_time(acc_data['created_at']) @@ -225,7 +225,7 @@ def get_global_accounts(user: discord.User) -> Generator[Account, None, None]: if not is_global(): raise RuntimeError("The bank is not currently global.") - accs = _conf.user(user).all() # this is a dict of user -> acc + accs = _conf.user(user).all_from_kind() # this is a dict of user -> acc for user_id, acc in accs.items(): acc_data = acc.copy() acc_data['created_at'] = _decode_time(acc_data['created_at'])