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

add left join for auth_membership

the on query for anon permissions was causing a cross join with the
auth_membership table, which made the file_count and file_size fields
parent 01f7e36f
......@@ -14,6 +14,7 @@ class SampleSetList():
db.config.on(db.fused_file.config_id ==,
db.auth_permission.on((db.auth_permission.table_name == 'sample_set') & (db.auth_permission.record_id == s_table.sample_set_id) & ( == PermissionEnum.access.value)),
db.auth_group.on(db.auth_permission.group_id ==,
db.auth_membership.on( == db.auth_membership.group_id),
(db.anon_permission.table_name == self.type) &
( == "anon") &
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