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

Show Accepted Submission Score; Avoid Parsing HTML #44

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

JoelNiemela
Copy link
Contributor

Closes #38

This also removes lxml as a dependency.

This requires the Kattis /submissions/<id>?json endpoint to add some more fields: score, runtime, testcase_count, and compiler_feedback

Before merging this, the required Kattis changes need to be done first, and this needs to be properly tested.

@hairez
Copy link
Contributor

hairez commented Aug 18, 2024

While you're at it, is it possible to include maxscore in the status text?

@@ -370,12 +366,7 @@ def show_judgement(submission_url, cfg):
success = status_id == _ACCEPTED_STATUS
if success:
status_text += f' ({score})'
Copy link
Contributor

Choose a reason for hiding this comment

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

Something like

            if success:
                status_text += f' ({score}/{maxscore})'

would be nice.

Is it possible to include the maxscore information from Kattis?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Unfortunately, there's no maxscore information available from/in Kattis, so there's no way to correctly show that (without making assumptions, which could be incorrect...)

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.

Provide score in Accepted result
2 participants