initial commit
This commit is contained in:
16
api/child_tasks.py
Normal file
16
api/child_tasks.py
Normal file
@@ -0,0 +1,16 @@
|
||||
class ChildTask:
|
||||
def __init__(self, name, is_good, points, image_id, id):
|
||||
self.id = id
|
||||
self.name = name
|
||||
self.is_good = is_good
|
||||
self.points = points
|
||||
self.image_id = image_id
|
||||
|
||||
def to_dict(self):
|
||||
return {
|
||||
'id': self.id,
|
||||
'name': self.name,
|
||||
'is_good': self.is_good,
|
||||
'points': self.points,
|
||||
'image_id': self.image_id
|
||||
}
|
||||
Reference in New Issue
Block a user