Commit efa82e9f authored by Vladislav Rykov's avatar Vladislav Rykov
Browse files

uwsgi and installation added

parent 28445f36
This diff is collapsed.
......@@ -276,13 +276,15 @@ def data_csv():
fn = session['appkey']+ '_' +str(session['devid'])+ '.csv'
with open(app.config['DATA_DOWNLOAD_DIR']+'/'+fn, 'w') as f:
with open('app/'+app.config['DATA_DOWNLOAD_DIR']+'/'+fn, 'w+') as f:
f.write('utc,timestamp,')
for d in dumpd[1][0][2]:
f.write(d)
f.write(',')
f.write('\n')
for row in dumpd[1]:
f.write('{},{},'.format(row[0],row[1]))
for v in row[2]:
f.write(str(row[2][v]))
f.write(',')
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment