Skip to content
This repository has been archived by the owner on May 17, 2024. It is now read-only.

Commit

Permalink
Fixes references to airtable
Browse files Browse the repository at this point in the history
  • Loading branch information
y4izus committed Sep 20, 2023
1 parent 1351eaa commit 0c09a0f
Show file tree
Hide file tree
Showing 5 changed files with 53 additions and 13 deletions.
18 changes: 15 additions & 3 deletions content/fall-fest-events/fall-fest-extension-events.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,17 +16,21 @@
"country": "India"
},
{
"institution": "Lancaster University Leipzig",
"institution": "Aristotle University of Thessaloniki",
"country": "Germany"
},
{
"institution": "Aristotle University of Thessaloniki",
"institution": "University of California, Irvine ",
"country": "Greece"
},
{
"institution": "National Taiwan University",
"institution": "Lancaster University Leipzig",
"country": "Taiwan"
},
{
"institution": "National Taiwan University",
"country": "United States"
},
{
"institution": "University of California, Irvine ",
"country": "United States"
Expand Down Expand Up @@ -58,5 +62,13 @@
{
"institution": "Indian Institute of Technology,Patna",
"country": "India"
},
{
"institution": "University of Minnesota",
"country": "United States"
},
{
"institution": "Rice University",
"country": "United States"
}
]
34 changes: 31 additions & 3 deletions content/fall-fest-events/fall-fest-partner-events.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[
{
"title": "Case Western",
"startDate": "November 6, 2023",
"startDate": "November 7, 2023",
"detail": "In person",
"cta": {
"label": "Learn more here",
Expand All @@ -14,7 +14,7 @@
},
{
"title": "RV PU College",
"startDate": "October 15, 2023",
"startDate": "October 16, 2023",
"detail": "In person",
"cta": {
"label": "Learn more here",
Expand Down Expand Up @@ -42,7 +42,7 @@
},
{
"title": "Defence Institute of Advanced Technology,Pune",
"startDate": "October 11, 2023",
"startDate": "October 12, 2023",
"detail": "Hybrid",
"cta": {
"label": "Learn more here",
Expand All @@ -53,5 +53,33 @@
}
},
"image": "/images/events/downloaded/receCChugw2XoLnAU.jpg"
},
{
"title": "TU Vienna",
"startDate": "October 21, 2023",
"detail": "In person",
"cta": {
"label": "Learn more here",
"url": "https://www.eventbrite.com/myevent?eid=712218262997",
"segment": {
"cta": "tu-vienna",
"location": "fall-fest-page"
}
},
"image": "/images/events/downloaded/recmHE0qC1rxN2MiB.jpg"
},
{
"title": "University of Houston ",
"startDate": "November 17, 2023",
"detail": "In person",
"cta": {
"label": "Learn more here",
"url": "https://github.com/SamD-1998/Quantum-Computing-Fest-2023",
"segment": {
"cta": "university-of-houston-",
"location": "fall-fest-page"
}
},
"image": "/images/events/downloaded/recu4YP7eBA3IDUqB.jpg"
}
]
6 changes: 3 additions & 3 deletions hooks/fall-fest-extension-event-conversion.utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { AirtableRecords } from "./airtable-conversion-utils";
import { FallFestExtensionEvent } from "types/fall-fest";

export const RECORD_FIELDS_IDS = Object.freeze({
institution: "fldbhoWi3U8r3W36W",
institution: "flddG950A6KMmF19G",
country: "fldkH49PJK7ZgkU4R",
} as const);

Expand All @@ -17,7 +17,7 @@ class FallFestExtensionEventAirtableRecords extends AirtableRecords {
super(
apiKey,
AIRTABLE_BASE_ID,
"Website View",
"Extension Website",
view,
undefined,
recordFields
Expand All @@ -43,7 +43,7 @@ class FallFestExtensionEventAirtableRecords extends AirtableRecords {
await base("Extension Website")
.select({
fields: Object.values(this.recordFields),
view: "Universities",
view: "Website View",
// sort: [{ field: this.recordFields.name, direction: "asc" }],
})
.eachPage(async (records, nextPage) => {
Expand Down
4 changes: 2 additions & 2 deletions hooks/fall-fest-partner-event-conversion.utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ class FallFestPartnerEventAirtableRecords extends AirtableRecords {
super(
apiKey,
AIRTABLE_BASE_ID,
"Website view",
"Partner Website",
view,
undefined,
recordFields
Expand All @@ -50,7 +50,7 @@ class FallFestPartnerEventAirtableRecords extends AirtableRecords {
await base("Partner Website")
.select({
fields: Object.values(this.recordFields),
view: "Universities",
view: "Website view",
// sort: [{ field: this.recordFields.name, direction: "asc" }],
})
.eachPage(async (records, nextPage) => {
Expand Down
4 changes: 2 additions & 2 deletions hooks/update-fall-fest-events.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@ import { writeJSONToFile } from "./utils/conversion-utils";

export default async function (apiKey: string, outputFolder: string) {
const extensionEventsAirtableRecords =
new FallFestExtensionEventAirtableRecords(apiKey, "Universities");
new FallFestExtensionEventAirtableRecords(apiKey, "Website View");
const fallFestExtensionEvents =
await extensionEventsAirtableRecords.fetchExtensionEvents();

const partnerEventsAirtableRecords = new FallFestPartnerEventAirtableRecords(
apiKey,
"Universities"
"Website view"
);
const fallFestPartnerEvents =
await partnerEventsAirtableRecords.fetchPartnerEvents();
Expand Down

0 comments on commit 0c09a0f

Please sign in to comment.