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

#360: let AtCoderProblem.submit_code return AtCoderSubmission #373

Merged
merged 1 commit into from
Mar 9, 2019

Conversation

kmyk
Copy link
Member

@kmyk kmyk commented Mar 9, 2019

@kmyk kmyk added this to the v6.0.0 milestone Mar 9, 2019
@kmyk kmyk requested a review from fukatani March 9, 2019 06:36
# CAUTION: this URL is not a URL of the submission
log.success('success: result: %s', resp.url)
return utils.DummySubmission(resp.url, problem=self)
submission = next(AtCoderContest(self.contest_id)._iterate_submissions_from_response(resp))
Copy link
Contributor

Choose a reason for hiding this comment

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

未サブミットの問題に遭遇するとどうなるでしょうか?

Copy link
Member Author

Choose a reason for hiding this comment

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

この部分に到達するのは提出が成功した場合のみです。また、提出結果一覧への反映がなされていない状態のHTMLが帰ってくることや、まったく同時の提出によって結果が壊れることを想定する必要はないはずです。

@fukatani fukatani assigned kmyk and unassigned fukatani Mar 9, 2019
@fukatani
Copy link
Contributor

fukatani commented Mar 9, 2019

一箇所質問しました。

@kmyk
Copy link
Member Author

kmyk commented Mar 9, 2019

回答をしました。

@fukatani
Copy link
Contributor

fukatani commented Mar 9, 2019

LGTM

@fukatani fukatani merged commit 9a233e5 into master Mar 9, 2019
@fukatani fukatani deleted the feature/submission-result branch March 9, 2019 10:24
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