Chart resolution on chart rewrite fixed

This commit is contained in:
rlagutin 2014-11-25 16:34:44 +03:00
parent 695befd7ab
commit 8e918ff5e8
1 changed files with 2 additions and 2 deletions

View File

@ -103,14 +103,14 @@ def saveChart(clientId, userId, chartName, symbol, resolution, content):
return response(json.dumps({'status': 'ok', 'id': newChart.id}))
def rewriteChart(clientId, userId, chartId, chartName, symbol, resoluion, content):
def rewriteChart(clientId, userId, chartId, chartName, symbol, resolution, content):
try:
chart = models.Chart.objects.get(ownerSource = clientId, ownerId = userId, id = chartId)
chart.lastModified = datetime.utcnow()
chart.content = content
chart.name = chartName
chart.symbol = symbol
chart.resoluion = resoluion
chart.resolution = resolution
chart.save()
return response(json.dumps({'status': 'ok'}))