From 71fdb6620d18706673f05513280550e28e68c1ad Mon Sep 17 00:00:00 2001 From: aj Date: Tue, 29 Oct 2019 13:36:35 +0000 Subject: [PATCH] hotfix variable name collision --- music/db/database.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/music/db/database.py b/music/db/database.py index 8191ff9..904087d 100644 --- a/music/db/database.py +++ b/music/db/database.py @@ -17,9 +17,9 @@ logger = logging.getLogger(__name__) def refresh_token_database_callback(user): if isinstance(user, DatabaseUser): - user = get_user(user.user_id) + user_obj = get_user(user.user_id) - user.update_database({ + user_obj.update_database({ 'access_token': user.access_token, 'refresh_token': user.refresh_token, 'last_refreshed': user.last_refreshed,