Exemplo n.º 1
0
 def all(self):
     return WorkerResource.all()
Exemplo n.º 2
0
 def __init__(self, worker_id):
     self.worker_id = worker_id
     super(Worker, self).__init__()
     self._worker = WorkerResource.find(worker_id)
Exemplo n.º 3
0
 def total_workers(self):
     return str(len(WorkerResource.all()))