Skip to content

Commit aa22a34

Browse files
committed
Comment w/ queries
1 parent 0e79c1f commit aa22a34

File tree

1 file changed

+28
-0
lines changed

1 file changed

+28
-0
lines changed

src/server/api/API_ingest/sl_animal_events.py

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import os, time, json
22
import posixpath as path
33

4+
45
import requests
56

67
from api.API_ingest import shelterluv_db
@@ -159,3 +160,30 @@ def slae_test():
159160

160161
count = shelterluv_db.insert_events(b)
161162
return count
163+
164+
165+
# Query to get last adopt/foster event:
166+
167+
# """
168+
# select
169+
# person_id as sl_person_id, max(to_timestamp(time)::date) as last_fosteradopt_event
170+
# from
171+
# sl_animal_events
172+
# where event_type < 4 -- check this
173+
# group by
174+
# person_id
175+
# order by
176+
# person_id asc;
177+
# """
178+
# Volgistics last shift
179+
180+
# """
181+
# select
182+
# volg_id, max(from_date) as last_shift
183+
# from
184+
# volgisticsshifts
185+
# group by
186+
# volg_id
187+
# order by
188+
# volg_id ;
189+
# """

0 commit comments

Comments
 (0)