Skip to content

Commit

Permalink
bump
Browse files Browse the repository at this point in the history
  • Loading branch information
XieXiLin2 committed Jan 19, 2024
1 parent e3c2a76 commit a0b4ead
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,10 @@ Telegram:[@lgc2333](https://t.me/lgc2333)

## 📝 更新日志

### 0.1.6

- 添加担当路局显示 & 改次列车查询

### 0.1.5

- 修复 `-h` 参数无效的问题
Expand Down
2 changes: 1 addition & 1 deletion nonebot_plugin_cnrail/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
from . import __main__ as __main__ # noqa: E402
from .config import ConfigModel # noqa: E402

__version__ = "0.1.5"
__version__ = "0.1.6"
__plugin_meta__ = PluginMetadata(
name="CNRail",
description="查询 12306 列车时刻表",
Expand Down
3 changes: 2 additions & 1 deletion nonebot_plugin_cnrail/data_source.py
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,8 @@ async def query_train_info(train_code: str, train_date: str) -> Optional[TrainIn
stations = parse_obj_as(List[TrainStation], raw_data)

async with httpx.AsyncClient(
base_url=CNRAIL_DATA_BASE_URL, follow_redirects=True
base_url=CNRAIL_DATA_BASE_URL,
follow_redirects=True,
) as client:
resp = await client.get("/maintance.json")
resp.raise_for_status()
Expand Down

0 comments on commit a0b4ead

Please sign in to comment.