Fix user_id being a str instead of int
This commit is contained in:
1 parent
5c7fdd401b
commit
2d63b24c8f
1 file changed
+2
-1
@@ -403,7 +403,8 @@ class Twitch:
|
|||||||
elif status == 200:
|
elif status == 200:
|
||||||
validate_response = await response.json()
|
validate_response = await response.json()
|
||||||
break
|
break
|
||||||
self._user_id = cookie["persistent"] = validate_response["user_id"]
|
self._user_id = int(validate_response["user_id"])
|
||||||
|
cookie["persistent"] = str(self._user_id)
|
||||||
self._is_logged_in.set()
|
self._is_logged_in.set()
|
||||||
print(f"Login successful, User ID: {self._user_id}")
|
print(f"Login successful, User ID: {self._user_id}")
|
||||||
# update our cookie and save it
|
# update our cookie and save it
|
||||||
|
|||||||
Reference in new issue
Block a user