Skip to content

Commit

Permalink
fix: lint
Browse files Browse the repository at this point in the history
  • Loading branch information
fzls committed Jun 28, 2024
1 parent 43da008 commit db6a623
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions wegame_api.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# type: ignore
import json
import os

Expand Down Expand Up @@ -92,9 +93,7 @@ def login(self, uin, skey, p_skey):
"user-agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/85.0.4183.102 Safari/537.36",
}
res = requests.post(self.login_url, json=data, headers=headers, timeout=10)
tgp_id, tgp_ticket = int(res.cookies.get("tgp_id")), res.cookies.get(
"tgp_ticket"
) # mypy: disable-error-code="arg-type"
tgp_id, tgp_ticket = int(res.cookies.get("tgp_id")), res.cookies.get("tgp_ticket")
self.set_tgp_info(tgp_id, tgp_ticket)

logger.info(tgp_id)
Expand Down

0 comments on commit db6a623

Please sign in to comment.