Coded like crazy. The code is repetitive and optimizable. Almost done tho.

This commit is contained in:
2024-02-12 14:29:04 +01:00
parent f176dbaa26
commit 5456c9632a
9 changed files with 268 additions and 6 deletions

25
src/Assignment.py Normal file
View File

@ -0,0 +1,25 @@
# Module to handle each assignment (most difficult part)
from Course import Course
from File import File
from Submission import Submission
from Base import Base
from Exercise import Exercise
class Assignment(Base):
def __init__(self, url:str, name:str, session:Session, parent:Course):
super().__init__()
self.files = self.files
def __str__(self):
return f"Assignment {self.name} in course {self.parent.name}"
def getSubmissions(self) -> Submission:
pass
def getExercises(self) -> list[Excercise]:
pass
def getExercise(self, name:str) -> Exercise:
pass