refactor: added clinics counts filter
This commit is contained in:
@@ -50,7 +50,7 @@ class ClinicServices:
|
|||||||
SELECT
|
SELECT
|
||||||
COUNT(*) as total,
|
COUNT(*) as total,
|
||||||
COUNT(CASE WHEN status = 'ACTIVE' THEN 1 END) as active,
|
COUNT(CASE WHEN status = 'ACTIVE' THEN 1 END) as active,
|
||||||
COUNT(CASE WHEN status = 'REJECTED' THEN 1 END) as rejected
|
COUNT(CASE WHEN status = 'REJECTED' OR status = 'UNDER_REVIEW' OR status = 'PAYMENT_DUE' OR status = 'REQUESTED_DOC' THEN 1 END) as rejected
|
||||||
FROM clinics
|
FROM clinics
|
||||||
""")
|
""")
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user