Skip to content

Commit

Permalink
修复问题
Browse files Browse the repository at this point in the history
  • Loading branch information
he0119 committed Sep 2, 2023
1 parent 545de27 commit c992cb8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/plugins/repeat/recorder.py
Original file line number Diff line number Diff line change
Expand Up @@ -294,9 +294,9 @@ async def data_migration():
users[(date_str, group_id, user_id)] = {
"msg_number": msg_number
}
for (date, group_id, user_id), values in users.items():
for (date_str, group_id, user_id), values in users.items():

Check warning on line 297 in src/plugins/repeat/recorder.py

View check run for this annotation

Codecov / codecov/patch

src/plugins/repeat/recorder.py#L297

Added line #L297 was not covered by tests
record = Record(
date=datetime.strptime(date, "%Y-%m-%d").date(),
date=datetime.strptime(date_str, "%Y-%m-%d").date(),
platform="qq",
group_id=group_id,
user_id=user_id,
Expand Down
2 changes: 1 addition & 1 deletion src/plugins/weather/heweather_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,6 @@ async def heweather(location: str, adm: str | None = None) -> str | None:
await daily(city[0]),
]
)
except:
except Exception:

Check warning on line 107 in src/plugins/weather/heweather_api.py

View check run for this annotation

Codecov / codecov/patch

src/plugins/weather/heweather_api.py#L107

Added line #L107 was not covered by tests
logger.exception("和风天气 API 请求失败")
return

0 comments on commit c992cb8

Please sign in to comment.