File tree Expand file tree Collapse file tree 1 file changed +28
-0
lines changed
src/server/api/API_ingest Expand file tree Collapse file tree 1 file changed +28
-0
lines changed Original file line number Diff line number Diff line change 11import os , time , json
22import posixpath as path
33
4+
45import requests
56
67from 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+ # """
You can’t perform that action at this time.
0 commit comments