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

fixed it so that pwn can sync extra credit assignments to pwn.college… #576

Merged
merged 1 commit into from
Sep 27, 2024

Conversation

etrickel
Copy link
Contributor

@etrickel etrickel commented Sep 25, 2024

Fixing a bug / adding a feature to support pwn.college assignments that are extra credit.

The Canvas sync was using only a % to update the canvas grade, which will automatically take into account the possible points. However, for extra credit assignments, the possible points are zero. As a result, nothing was getting transferred to Canvas.

I added code that will check if the possible points are 0 and the field extra_credit_max is > 0 then in course.xml for the assessment, then it will calculate the points to post to Canvas using the extra_credit_max.

I ran tests against my dev instance using ASU's beta account for Canvas.

… added an extra_credit_max field for the calcuation
@ConnorNelson ConnorNelson merged commit 9b11dc1 into pwncollege:master Sep 27, 2024
1 check passed
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