Commits

Dan Connolly committed 4d50bd4

fix batch cutoff syntax

Comments (0)

Files changed (1)

templates/income_by_therapist.html

   join `Session` sn on vt.Session_id = sn.id
   join `Group` gp on sn.Group_id = gp.id
   join Therapist th on sn.Therapist_id = th.id
-where sn.session_date > where c.recent >= (
+where sn.session_date >= (
  select cutoff from Batch
  where name = 'income')
 group by