Commit e930b051 authored by Marc Duez's avatar Marc Duez

server: patient view, replace query ( use left outer join to catch patient with no data)

parent 46844ad2
......@@ -4,14 +4,14 @@
{{if 'message' in globals():}}
{{
count = db.patient.id.count()
count = db.sequence_file.id.count()
query = db(
(auth.accessible_query('read', db.patient) | auth.accessible_query('admin', db.patient) ) &
(db.patient.id == db.sequence_file.patient_id)
(auth.accessible_query('read', db.patient) | auth.accessible_query('admin', db.patient) )
).select(
db.patient.ALL,
count,
left=db.sequence_file.on(db.patient.id == db.sequence_file.patient_id),
groupby=db.patient.id
)
}}
......
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