Skip to content

Commit

Permalink
Fix typos discovered by codespell (#677)
Browse files Browse the repository at this point in the history
* Fix typos discovered by codespell

* Fix typos discovered by codespell
  • Loading branch information
cclauss committed Nov 11, 2021
1 parent 1715a59 commit 31d0a8b
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 4 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,9 @@ jobs:
- 11211:11211
steps:
- uses: actions/checkout@v2
- uses: codespell-project/actions-codespell@master
with:
ignore_words_list: ba
- name: Setup Python
uses: actions/setup-python@v2
with:
Expand Down
2 changes: 1 addition & 1 deletion docs/changelog.rst
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ Released on 2019-03-15
Version 1.7.6
-----------------

Relased on 2019-01-04
Released on 2019-01-04

+ 增加获取所有用户 openid API
+ 增加菜单进入小程序事件
Expand Down
2 changes: 1 addition & 1 deletion tests/fixtures/work/externalcontact_get.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"external_contact":{
"external_userid":"woAJ2GCAAAXtWyujaWJHDDGi0mACH71w",
"name":"李四",
"position":"Mangaer",
"position":"Manager",
"avatar":"http://p.qlogo.cn/bizmail/IcsdgagqefergqerhewSdage/0",
"corp_name":"腾讯",
"corp_full_name":"腾讯科技有限公司",
Expand Down
4 changes: 2 additions & 2 deletions wechatpy/work/client/api/oa.py
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ def get_dial_record(
:return: 公费电话拨打记录
"""
if start_time and end_time and end_time <= start_time:
raise ValueError("the end time must be greater than the begining time")
raise ValueError("the end time must be greater than the beginning time")

data = {"start_time": start_time, "end_time": end_time, "offset": offset, "limit": limit}
return self._post("dial/get_dial_record", data=data)
Expand All @@ -142,7 +142,7 @@ def get_checkin_data(self, data_type: int, start_time: int, end_time: int, useri
raise ValueError(f"data_type must be in {list(checkin_data_type.keys())}")

if end_time <= start_time:
raise ValueError("the end time must be greater than the begining time")
raise ValueError("the end time must be greater than the beginning time")

if not userid_list:
raise ValueError("the userid_list can't be an empty list")
Expand Down

0 comments on commit 31d0a8b

Please sign in to comment.