Minor fix

This commit is contained in:
thec0sm0s
2020-05-14 22:47:16 +05:30
parent e70fd91424
commit 367a0e4dd3

View File

@@ -114,7 +114,7 @@ class User(DiscordModelsBase):
[cls, ...]
List of instances of this model when many of these models exist."""
self = super().fetch_from_api()
app.discord.users_cache.update({self.id: self})
current_app.discord.users_cache.update({self.id: self})
session["DISCORD_USER_ID"] = self.id
if guilds: