Skip to content

Commit

Permalink
style: Format code with black
Browse files Browse the repository at this point in the history
  • Loading branch information
deepsource-autofix[bot] committed Sep 6, 2023
1 parent 754be0d commit b179eaa
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions plugins/account/players.py
Original file line number Diff line number Diff line change
Expand Up @@ -221,10 +221,10 @@ async def refresh_cookies(self, update: "Update", _: "ContextTypes.DEFAULT_TYPE"
cookies.remove_v2()
for cookie in client.cookies.jar:
if cookie.name == "cookie_token" and cookie.expires is not None:
expiry_date = time.strftime('%Y-%m-%d %H:%M:%S', time.gmtime(cookie.expires))
expiry_date = time.strftime("%Y-%m-%d %H:%M:%S", time.gmtime(cookie.expires))
logger.info("下次 cookie_token 过期时间为 %s", expiry_date)
if cookie.name == "ltoken" and cookie.expires is not None:
expiry_date = time.strftime('%Y-%m-%d %H:%M:%S', time.gmtime(cookie.expires))
expiry_date = time.strftime("%Y-%m-%d %H:%M:%S", time.gmtime(cookie.expires))
logger.info("下次 ltoken 过期时间为 %s", expiry_date)
except Exception as exc: # pylint: disable=W0703
logger.error("刷新 cookie_token 失败 [%s]", (str(exc)))
Expand Down Expand Up @@ -395,4 +395,3 @@ async def delete(self, update: "Update", _: "ContextTypes.DEFAULT_TYPE") -> None
else:
if callback_query.message:
await callback_query.message.delete()

0 comments on commit b179eaa

Please sign in to comment.