Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update data to 2024 #79

Merged
merged 14 commits into from
Apr 26, 2024
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
Loading