CodeForPhilly / paws-data-pipeline

PAWS Data Pipeline Project
MIT License
17 stars 9 forks source link

Store last run date and last success date to display on Admin page #538

Closed c-simpson closed 1 year ago

c-simpson commented 1 year ago

Create endpoint that returns last date and last success for Salesforce Shelterluv Volgistics (last upload)

c-simpson commented 1 year ago

New endpoint: /api/get_last_runs will run an array of dictionaries like

[{"last_volgistics_update":"Sat Mar 18 18:03:28 2023"}]

other keys include: last_shelterluv_update last_salesforce_update

@sposerina you'll need to hit log_db.log_salesforce_update() when you complete a data push @carrollsa you'll need to hit the endpoint and display the timestamps. If you'd prefer epoch times, I can do that as well.