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