Skip to content

Commit

Permalink
Data Update for 2021-22 (#28)
Browse files Browse the repository at this point in the history
* update year and fix bug with roles match on job class id

* add various snapshots for the annual data update

* update bootstrap to latest db
  • Loading branch information
jbaldo authored Oct 14, 2023
1 parent f64fecd commit cced6d8
Show file tree
Hide file tree
Showing 8 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion db_backup/bootstrap.sh
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
# assumes there is already a database called openousd
pg_restore -U postgres --clean -d openousd /db_backup/snapshots/openousd_snapshot_2021-09-25_20-17-2020-21-expenditures.dump
pg_restore -U postgres --clean -d openousd /db_backup/snapshots/openousd_snapshot_2023-02-24_03-36-2021-22-update-fix-staff-roles.dump
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
4 changes: 2 additions & 2 deletions routes/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ if (!pgPool) {
pgPool.on("error", (err, client) => console.log(err))

// Global defaults
const latestYear = 2020
const latestYear = 2021

const router = Router()

Expand Down Expand Up @@ -93,7 +93,7 @@ router.get("/central-programs", async (req, res, next) => {
job_classes jc,
staffing st
WHERE m.position_id = st.position_id
AND st.job_class_id = jc.job_class_id
AND TRIM(st.job_class_id) = jc.job_class_id
AND m.max_assignment = st.assignment_id
AND st.site_code >= 900
AND year = ${year}
Expand Down

0 comments on commit cced6d8

Please # to comment.