Commit 49ee14e8 authored by Marc Duez's avatar Marc Duez
Browse files

server : getData > copy correct sampling date from server

parent 1b0e3356
...@@ -103,10 +103,12 @@ def get_data(): ...@@ -103,10 +103,12 @@ def get_data():
).select( orderby=db.sequence_file.id|db.results_file.run_date, groupby=db.sequence_file.id ) ).select( orderby=db.sequence_file.id|db.results_file.run_date, groupby=db.sequence_file.id )
data["samples"]["original_names"] = [] data["samples"]["original_names"] = []
data["samples"]["timestamp"] = []
data["samples"]["info"] = [] data["samples"]["info"] = []
for row in query : for row in query :
filename = row.sequence_file.filename filename = row.sequence_file.filename
data["samples"]["original_names"].append(filename) data["samples"]["original_names"].append(filename)
data["samples"]["timestamp"].append(str(row.sequence_file.sampling_date))
data["samples"]["info"].append(row.sequence_file.info) data["samples"]["info"].append(row.sequence_file.info)
log.debug("get_data: %s -> %s" % (request.vars["patient_id"], fused_file)) log.debug("get_data: %s -> %s" % (request.vars["patient_id"], fused_file))
......
Markdown is supported
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