Skip to content

Commit 1224576

Browse files
committed
remove user id from client
1 parent 86ffe53 commit 1224576

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

inoreader/client.py

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ class InoreaderClient(object):
4040
BROADCAST_TAG = 'user/-/state/com.google/broadcast'
4141

4242
def __init__(self, app_id, app_key, access_token, refresh_token,
43-
expires_at, userid=None, config_manager=None):
43+
expires_at, config_manager=None):
4444
self.app_id = app_id
4545
self.app_key = app_key
4646
self.access_token = access_token
@@ -52,11 +52,7 @@ def __init__(self, app_id, app_key, access_token, refresh_token,
5252
'AppKey': self.app_key,
5353
'Authorization': 'Bearer {}'.format(self.access_token)
5454
})
55-
self.userid = userid or self.userinfo()['userId']
5655
self.config_manager = config_manager
57-
if self.userid and self.config_manager and not self.config_manager.user_id:
58-
self.config_manager.user_id = self.userid
59-
self.config_manager.save()
6056

6157
def check_token(self):
6258
now = datetime.now().timestamp()

0 commit comments

Comments
 (0)