Commit 20d114a8 authored by Ryan Herbert's avatar Ryan Herbert Committed by Mikaël Salson

count distinct sequence_file ids

fixes issue with sequence_file count for sample_sets accessible to
multiple groups
parent 65cd899d
......@@ -66,7 +66,7 @@ class SampleSetList():
s_table.info.with_alias('info'),
db.auth_user.last_name.with_alias('creator'),
db.sequence_file.size_file.sum().with_alias('size'),
db.sequence_file.id.count().with_alias('file_count'),
db.sequence_file.id.count(distinct=True).with_alias('file_count'),
db.anon_permission.name.with_alias('has_permission'),
group_configs,
group_config_ids,
......
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