Skip to content

Commit

Permalink
Add list in Worker string
Browse files Browse the repository at this point in the history
  • Loading branch information
fanglinfang committed Apr 16, 2019
1 parent 1458e3d commit 802b728
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions uw_hrp/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -126,8 +126,8 @@ def json_data(self):

def __str__(self):
json_data = self.json_data()
json_data['worker_positions'] = ','.join(
map(str, self.worker_positions))
json_data['worker_positions'] = "[{0}]".format(','.join(
map(str, self.worker_positions)))
return json.dumps(json_data)

def __init__(self, *args, **kwargs):
Expand Down

0 comments on commit 802b728

Please sign in to comment.