Skip to content

Commit

Permalink
pre-commit
Browse files Browse the repository at this point in the history
  • Loading branch information
Agnes4m committed Nov 9, 2023
1 parent e04d4a5 commit e64c846
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 3 deletions.
6 changes: 5 additions & 1 deletion nonebot_plugin_bilifan/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,11 @@ async def _():
return
try:
scheduler.add_job(
auto_cup, "cron", hour=fields[0], minute=fields[1], id="auto_cup",
auto_cup,
"cron",
hour=fields[0],
minute=fields[1],
id="auto_cup",
)
except Exception:
logger.warning("定时任务已存在")
4 changes: 3 additions & 1 deletion nonebot_plugin_bilifan/src/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -495,7 +495,9 @@ async def getGroups(self):
"ts": int(time.time()),
}
list_msg = await self.__get(
url, params=SingableDict(params).signed, headers=self.headers
url,
params=SingableDict(params).signed,
headers=self.headers,
)
print(list_msg)
list_m = list_msg["list"]
Expand Down
3 changes: 2 additions & 1 deletion nonebot_plugin_bilifan/src/user.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,8 @@ async def doSign(self):
signInfo = await self.api.doSign()
log.success(
"签到成功,本月签到次数: {}/{}".format(
signInfo["hadSignDays"], signInfo["allDays"]
signInfo["hadSignDays"],
signInfo["allDays"],
),
)
self.message.append(
Expand Down

0 comments on commit e64c846

Please sign in to comment.