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

Submissions.saveInstance() does not exist #36

Open
gavinmccabe opened this issue Oct 5, 2021 · 0 comments
Open

Submissions.saveInstance() does not exist #36

gavinmccabe opened this issue Oct 5, 2021 · 0 comments

Comments

@gavinmccabe
Copy link

gavinmccabe commented Oct 5, 2021

When running

submissions = assignment.list_submission(student=student)
if submissions:
    submission = submissions[0]
    submission.grader = grader
    submission.saveInstance()

I get the error AttributeError: 'Submissions' object has no attribute 'saveInstance'

Similarly when trying to call the API manually:

requests.patch(f"https://api.codepost.io/submissions/{submission_id}", headers={"Authorization": f"Token {API_KEY}", "Content-Type": "application/json"}, data={"grader": grader})

There is no error and I get a 200, but the grader is not updated

@gavinmccabe gavinmccabe changed the title Submissions.save_instance() does not exist Submissions.saveInstance() does not exist Oct 5, 2021
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

No branches or pull requests

1 participant