Skip to content

Commit

Permalink
Merge pull request #79 from USSBA/Update-data-to-2024
Browse files Browse the repository at this point in the history
Update data to 2024
  • Loading branch information
KevL927 authored Apr 26, 2024
2 parents ac36180 + cd9583c commit 19ce1ed
Show file tree
Hide file tree
Showing 6 changed files with 59 additions and 5 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
.terraform*
.DS_Store
.ipynb_checkpoints
26 changes: 26 additions & 0 deletions agency-scorecards/data/2023.csv

Large diffs are not rendered by default.

27 changes: 27 additions & 0 deletions agency-scorecards/data/2023.json

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions agency-scorecards/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ <h1>Agency Scorecards</h1>
The annual scorecard assesses how well federal agencies reach their small business contracting goals. The SBA issues scorecards to the twenty-four (24) CFO Act Agencies.
</p>
<table>
<caption>FY2022 Scorecard Performance</caption>
<caption>FY <span data-fiscal_year></span> Scorecard Performance</caption>
<thead>
<tr>
<th>Acronym</th>
Expand Down Expand Up @@ -327,7 +327,7 @@ <h2 style="padding-left: 0">Read about the Method</h2>
<script type="text/javascript" src="js/hydrator.js"></script>
<script type="text/javascript">
async function loadScorecard() {
const scorecardData = await loader.fetchScorecardData(2022);
const scorecardData = await loader.fetchScorecardData(2023);
hydrator.hydrateHomePage(scorecardData);
}

Expand Down
4 changes: 2 additions & 2 deletions agency-scorecards/js/hydrator.js
Original file line number Diff line number Diff line change
Expand Up @@ -96,8 +96,8 @@ var hydrator = (function() {
const gradeElement = mainElement.querySelector(`[data-${agencyAcronym}-agency_grade]`);
const scoreElement = mainElement.querySelector(`[data-${agencyAcronym}-agency_score]`);

firstUrlElement.href = `scorecard.html?agency=${agencyAcronym}&year=2022`;
secondUrlElement.href = `scorecard.html?agency=${agencyAcronym}&year=2022`;
firstUrlElement.href = `scorecard.html?agency=${agencyAcronym}&year=2023`;
secondUrlElement.href = `scorecard.html?agency=${agencyAcronym}&year=2023`;
gradeElement.textContent = element.agency_grade;
scoreElement.textContent = element.agency_score;
}
Expand Down
2 changes: 1 addition & 1 deletion agency-scorecards/js/loader.js
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ let loader = (function() {
*/
public.init = async function() {
let currentParams = getParams();
let { agency = 'GW', year = 2022 } = currentParams;
let { agency = 'GW', year = 2023 } = currentParams;
console.debug(`loader.js initialized with agency: ${agency}, year: ${year}`);

scorecardData = await public.fetchScorecardData(year);
Expand Down

0 comments on commit 19ce1ed

Please sign in to comment.