code: def workers(ctx, account, top):
      
      workers = Workers(account)
      t = [["id", "name/url", "daily_pay", "votes", "time", "account"]]
      workers_sorted = sorted(
          workers, key=lambda x: int(x["total_votes_for"]), reverse=True
      )
      if top:
          workers_sorted = workers_sorted[: top + 1]
      for worker in workers_sorted:
          if worker["work_end_date"] < datetime.datetime.utcnow():
              continue
          votes = Amount({"amount": worker["total_votes_for"], "asset_id": "1.3.0"})
          amount = Amount({"amount": worker["daily_pay"], "asset_id": "1.3.0"})
          t.append(
              [
                  worker["id"],
                  "{name}\n{url}".format(**worker),
                  str(amount),
                  str(votes),
                  "{work_begin_date:%Y-%m-%d}\n-\n{work_end_date:%Y-%m-%d}".format(
                      **worker
                  ),
                  str(Account(worker["worker_account"])["name"]),
              ]
          )
      print_table(t)
docs: List all workers (of an account)