Working on transmitting visits, intentions, requests
This commit is contained in:
parent
de5d4de763
commit
0e7a74a28b
7 changed files with 104 additions and 26 deletions
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue