Skip to content

Submissions.saveInstance() does not exist #36

@gavinmccabe

Description

@gavinmccabe

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions