Types cast fixed

This commit is contained in:
rlagutin 2014-11-25 16:38:18 +03:00
parent 8e918ff5e8
commit b8fdaaa62a
1 changed files with 1 additions and 1 deletions

View File

@ -67,7 +67,7 @@ def respondToOptionsRequest(requestHeaders):
def getAllUserCharts(clientId, userId):
chartsList = models.Chart.objects.filter(ownerSource = clientId, ownerId = userId)
result = map(lambda x : {'id': x.id, 'name': x.name, 'timestamp': time.mktime(x.lastModified.timetuple()), 'symbol': x.symbol, 'resolution': x.resolution} , chartsList)
return response(json.dumps({'status': "ok", 'data': result}))
return response(json.dumps({'status': "ok", 'data': list(result)}))
def getChartContent(clientId, userId, chartId):