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

admin data download fixed

parent 6ad51f9e
......@@ -474,6 +474,7 @@ def administration_user_application_device_download_csv(name, appkey, devid):
with open(app.config['DATA_DOWNLOAD_DIR_OS']+'/'+fn, 'w+') as f:
f.write('utc,timestamp,')
print(dev)
for d in dev[3]['format']:
f.write(d)
f.write(',')
......@@ -481,8 +482,9 @@ def administration_user_application_device_download_csv(name, appkey, devid):
for row in dumpd[1]:
f.write('{},{},'.format(row[0],row[1]))
for v in row[2]:
f.write(str(row[2][v]))
decoded = ddm.read_data(row[2].tobytes(), dev[3])
for k, v in decoded.items():
f.write(str(v))
f.write(',')
f.write('\n')
......
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