Skip to content

Change grading algo to work with Submission entity #166

@ArthurCRodrigues

Description

@ArthurCRodrigues

Previously, we treated submission files as dict where key=filename and value=file content.

Now, we'll be working with the Submission entity to make things more organized, so the grader has to be adjusted for that.

Feel free to add any method or extra attributes to the new entity as you want.

Here is the Submission entity:

@dataclass
class SubmissionFile:
    filename: str
    content: str

@dataclass
class Submission:
    username: str
    user_id: int
    assignment_id: int
    submission_files: List[SubmissionFile]

Metadata

Metadata

Assignees

Labels

CriteriaTreeThis issue is related to the CriteriaTree and classes that interact with it.Issue Level: SpecificThe tasks related to this issue are very specific and focused on minor details, usually bugfixes.

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions