Skip to content

Commit

Permalink
fix: skip deprecated items
Browse files Browse the repository at this point in the history
  • Loading branch information
stdavis committed Mar 25, 2024
1 parent 7ee4080 commit 4d0803d
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/scripts/validate-sgid-index.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -218,9 +218,14 @@ buildDuplicateLookups(rows);
let updatedRowsCount = 0;
console.log(`checking ${rows.length} rows`);
const progressBar = new ProgressBar(':bar :percent ETA: :etas ', { total: rows.length });
const skipStatuses = ['deprecated', 'shelved'];
for (const row of rows) {
progressBar.tick();

if (skipStatuses.includes(row.get('ugrcStatus')?.toLowerCase())) {
continue;
}

let changed;
try {
changed = (await Promise.all(checks.map((check) => check(row)))).some((result) => result);
Expand Down

0 comments on commit 4d0803d

Please sign in to comment.