Working on transmitting visits, intentions, requests

This commit is contained in:
Simon Brooke 2018-07-24 17:52:23 +01:00
parent de5d4de763
commit 0e7a74a28b
7 changed files with 104 additions and 26 deletions

View file

@ -60,3 +60,10 @@ and request.issue_id = expertise.issue_id
and expertise.canvasser_id = :expert
ORDER BY visits.date desc
--:name get-last-visit-by-canvasser :? :1
--:doc returns the most recent visit record of the canvasser with the specified `:id`
SELECT * FROM visits
WHERE canvasser_id = :id
ORDER BY date desc
LIMIT 1