Skip to content

Commit e9273ce

Browse files
author
cris_gk
committed
Add endpoint for starting SL people ingest
1 parent 0dc6bc0 commit e9273ce

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

src/server/api/admin_api.py

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -409,6 +409,17 @@ def trigger_sla_pull():
409409
return jsonify({"rows added" : num_rows})
410410

411411

412+
@admin_api.route("/api/admin/test_slp", methods=["GET"])
413+
def trigger_slp_pull():
414+
415+
import api.API_ingest.shelterluv_api_handler
416+
417+
num_rows = api.API_ingest.shelterluv_api_handler.store_shelterluv_people_all()
418+
return jsonify({"rows added" : num_rows})
419+
420+
421+
422+
412423
# def pdfr():
413424
# dlist = pull_donations_for_rfm()
414425
# print("Returned " + str(len(dlist)) + " rows")

0 commit comments

Comments
 (0)