All checks were successful
Chore App Build, Test, and Push Docker Images / build-and-push (push) Successful in 2m34s
- Implemented ChoreAssignView for assigning chores to children. - Created ChoreConfirmDialog for confirming chore completion. - Developed KindnessAssignView for assigning kindness acts. - Added PenaltyAssignView for assigning penalties. - Introduced ChoreEditView and ChoreView for editing and viewing chores. - Created KindnessEditView and KindnessView for managing kindness acts. - Developed PenaltyEditView and PenaltyView for managing penalties. - Added TaskSubNav for navigation between chores, kindness acts, and penalties.
16 lines
430 B
Python
16 lines
430 B
Python
class ChildTask:
|
|
def __init__(self, name, task_type, points, image_id, id):
|
|
self.id = id
|
|
self.name = name
|
|
self.type = task_type
|
|
self.points = points
|
|
self.image_id = image_id
|
|
|
|
def to_dict(self):
|
|
return {
|
|
'id': self.id,
|
|
'name': self.name,
|
|
'type': self.type,
|
|
'points': self.points,
|
|
'image_id': self.image_id
|
|
} |