Skip to content

Commit

Permalink
up
Browse files Browse the repository at this point in the history
  • Loading branch information
lgc2333 committed Dec 7, 2024
1 parent af196d3 commit b5f84fd
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 5 deletions.
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -174,6 +174,10 @@ Telegram:[@lgc2333](https://t.me/lgc2333)

## 📝 更新日志

### 2.1.3

- 兼容 HTTPX 0.28

### 2.1.2

- fix [#49](https://github.com/lgc-NB2Dev/nonebot-plugin-picstatus/issues/49)
Expand Down
2 changes: 1 addition & 1 deletion examples/external_example/bg_provider.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
async def lgc_icon() -> BgData:
async with AsyncClient(
follow_redirects=True,
proxies=config.proxy,
proxy=config.proxy,
timeout=config.ps_req_timeout,
) as cli:
return resp_to_bg_data(
Expand Down
2 changes: 1 addition & 1 deletion nonebot_plugin_picstatus/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ async def _():
if config.ps_only_su:
usage += "\n注意:仅SuperUser可以使用此指令"

__version__ = "2.1.2"
__version__ = "2.1.3"
__plugin_meta__ = PluginMetadata(
name="PicStatus",
description="以图片形式显示当前设备的运行状态",
Expand Down
4 changes: 2 additions & 2 deletions nonebot_plugin_picstatus/bg_provider.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ def resp_to_bg_data(resp: Response):
async def loli():
async with AsyncClient(
follow_redirects=True,
proxies=config.proxy,
proxy=config.proxy,
timeout=config.ps_req_timeout,
) as cli:
return resp_to_bg_data(
Expand All @@ -76,7 +76,7 @@ async def loli():
async def lolicon():
async with AsyncClient(
follow_redirects=True,
proxies=config.proxy,
proxy=config.proxy,
timeout=config.ps_req_timeout,
) as cli:
resp = await cli.get(
Expand Down
2 changes: 1 addition & 1 deletion nonebot_plugin_picstatus/collectors/network.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ async def test_one(site: TestSiteCfg) -> NetworkConnectionType:
try:
async with AsyncClient(
timeout=config.ps_test_timeout,
proxies=config.proxy if site.use_proxy else None,
proxy=config.proxy if site.use_proxy else None,
follow_redirects=True,
) as client:
start = time.time()
Expand Down

0 comments on commit b5f84fd

Please sign in to comment.