Skip to content

Commit

Permalink
fixed team page errors and removed general members
Browse files Browse the repository at this point in the history
  • Loading branch information
Charles Zhu authored and Charles Zhu committed Aug 21, 2023
1 parent 90ce281 commit 5b98924
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 9 deletions.
2 changes: 1 addition & 1 deletion getOfficers.js
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,7 @@ function getOfficerData(committeeName) {
// empty row
return;
if (committees.has(row[0])) {
console.log(`\n\n\n${row[0]}\n\n\n`)
console.log(`\n\n\n${row[0]}\n\n\n`);
// row with only committee name
var committee = row[0];
currCommittee =
Expand Down
8 changes: 1 addition & 7 deletions getOfficers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ const SERVICE_ACCOUNT = process.env.SERVICE_ACCOUNT ?? '{}';
export default async function getOfficerData(
committeeName: string,
): Promise<object[]> {

const sheets = google.sheets({ version: 'v4' });
// Get JWT Token to access sheet
const service_account = JSON.parse(SERVICE_ACCOUNT);
Expand Down Expand Up @@ -84,9 +83,4 @@ export default async function getOfficerData(
officerID++;
});
return officers;
}





}
2 changes: 1 addition & 1 deletion pages/teamPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -59,4 +59,4 @@ export const getStaticProps: GetStaticProps = async () => {
},
revalidate: 3600,
};
};
};

0 comments on commit 5b98924

Please sign in to comment.