create attachment object

This commit is contained in:
lostecho
2024-05-26 10:00:10 +08:00
parent 2449c137f9
commit 6e4c28fb76
2 changed files with 18 additions and 2 deletions

View File

@@ -7,4 +7,4 @@ class Attachment:
self.url = url
def __repr__(self):
return f"Attachment(id={self.id}, course_id={self.course_id}, name={self.name}, url={self.url})"
return f"Attachment(id={self.id}, course_id={self.course_id}, name={self.name}, content={self.content}, url={self.url})"