Skip to content

Commit f335f2d

Browse files
author
yasht01
committed
Fix failing checks
1 parent f3aa9d2 commit f335f2d

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/arguments/utility.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -94,13 +94,14 @@ def get_ans(self, questions_list):
9494
return ans
9595

9696
# Get an access token and extract to a JSON file "access_token.json"
97+
@classmethod
9798
def setCustomKey(self):
9899
client_id = 20013
99100

100101
# scopes possible values:
101102
# read_inbox - access a user's global inbox
102103
# no_expiry - access_token's with this scope do not expire
103-
# write_access - perform write operations as a user
104+
# write_access - perform write operations as a user
104105
# private_info - access full history of a user's private actions on the site
105106
scopes = 'read_inbox'
106107

@@ -121,7 +122,7 @@ def setCustomKey(self):
121122
jsonDict = {
122123
"access_token": accessTokenData['access_token'],
123124
"expires": accessTokenData['expires'],
124-
"state": accessTokenData['state']
125+
"state": state
125126
}
126127

127128
with open('access_token.json', 'w') as jsonFile:

0 commit comments

Comments
 (0)