Commit 00ffd004 authored by Ryan Herbert's avatar Ryan Herbert

controllers/sample_set.py fix multi stat query

compare sample_set_membership sequence_file_id to results_file
sequence_file_id instead of sample_set_id to sequence_file_id.
Because it made no sense !
parent d06d4d4b
......@@ -663,7 +663,7 @@ def getStatData(results_file_ids):
query = db(
(db.results_file.id.belongs(results_file_ids)) &
(db.sample_set_membership.sample_set_id == db.results_file.sequence_file_id) &
(db.sample_set_membership.sequence_file_id == db.results_file.sequence_file_id) &
(db.sample_set.id == db.sample_set_membership.sample_set_id)
).select(
db.results_file.ALL, db.sample_set.ALL, db.patient.ALL, db.run.ALL, db.generic.ALL,
......
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