simple-pyyuque icon indicating copy to clipboard operation
simple-pyyuque copied to clipboard

获取某个用户/组织的仓库列表出现错误

Open shenweiyan opened this issue 3 years ago • 0 comments

>>> repo_api = SimplePyYuQueAPI(token=token, app_name="py_yuque1").Repo()
>>> repo_api.get_users_repos(type="all",login=username)
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/data/yuque/simple_pyyuque/simple_pyyuque.py", line 427, in get_users_repos
    params = {"type": type.value,
AttributeError: 'str' object has no attribute 'value'

shenweiyan avatar Mar 04 '21 03:03 shenweiyan