diff --git a/app/page.tsx b/app/page.tsx
index 4ef48f6..61c0dfd 100644
--- a/app/page.tsx
+++ b/app/page.tsx
@@ -10,6 +10,18 @@ import prisma from "../lib/prisma";
import { Course, CoursePlan } from "@prisma/client";
import { getPlanCookie } from "../app/actions";
+async function getCourses() {
+ const courses = await prisma.course.findMany();
+ let output: any = [];
+
+ for (let i = 0; i < courses.length; i++) {
+ if (!output.includes(courses[i].year)) {
+ output.push(courses[i].year);
+ }
+ }
+ return output;
+}
+
export default async function Page(props: {
searchParams?: Promise<{
query?: string;
@@ -45,13 +57,15 @@ export default async function Page(props: {
return