Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

#318 #317 add features to list contests and problems of AtCoder #325

Merged
merged 3 commits into from
Feb 20, 2019

Conversation

kmyk
Copy link
Member

@kmyk kmyk commented Feb 19, 2019

コンテストの列挙と問題の列挙ができるようにします

@@ -98,12 +100,154 @@ def _report_messages(cls, msgs: List[str], unexpected: bool = False) -> bool:
log.failure('unexpected messages found')
return bool(msgs)

def iterate_contests(self, lang: str = 'ja', session: Optional[requests.Session] = None) -> Generator['AtCoderContest', None, None]:
assert lang in ('ja', 'en') # NOTE: "lang=ja" is required to see some Japanese-local contests. However you can use "lang=en" to see the English names of contests.
Copy link
Contributor

@fukatani fukatani Feb 19, 2019

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

このNOTEは関数全体の注釈のような気もしていて関数のdocにしたほうがいいかもと思いましたが、どうでしょう?
pydocにすると、autogenされたrstファイルに説明ものるようになるんでしたっけ。

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

この指摘はまったく正しいのですが、後のコミットで docstring 化してるので見過してください
最終的には https://online-judge-tools.readthedocs.io/en/develop/onlinejudge.service.atcoder.html#onlinejudge.service.atcoder.AtCoderService.iterate_contests という形で document に乗ります

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🙏

@kmyk
Copy link
Member Author

kmyk commented Feb 19, 2019

これも Toph とは衝突しないのでよさそうなら merge してください

Copy link
Contributor

@fukatani fukatani left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@fukatani fukatani merged commit 77d505a into master Feb 20, 2019
@fukatani fukatani deleted the atcoder/list branch February 20, 2019 00:05
@kmyk
Copy link
Member Author

kmyk commented Feb 20, 2019

🎉

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants