Skip to content

Commit e7a6cad

Browse files
committed
Removed frame.png + polishing
- Removed copyrighted frame.png image - Polished logic in CommitteeAPIView to avoid repetition - Removed old comments in about.tsx
1 parent bb343cc commit e7a6cad

3 files changed

Lines changed: 5 additions & 9 deletions

File tree

client/public/frame.png

-113 KB
Binary file not shown.

client/src/pages/about.tsx

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,6 @@ import Image from "next/image";
33
import { ApiMember, useCommittee } from "@/hooks/useCommittee";
44

55
export default function AboutPage() {
6-
//const router = useRouter();
7-
//const { id } = router.query;
8-
// don't know if necessary
9-
106
const { data: committee, isPending, error, isError } = useCommittee();
117

128
const topRow: ApiMember[] = [];

server/game_dev/views.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -84,15 +84,15 @@ class CommitteeAPIView(generics.ListAPIView):
8484
def get_queryset(self):
8585
outputList = []
8686
roleOrder = ("P", "VP", "SEC", "TRE", "MARK", "EVE", "PRO", "FRE")
87+
placeholderMember = {"name": "Position not filled", "profile_picture": "url('/landing_placeholder.png')",
88+
"about": "", "pronouns": ""}
8789
for i in roleOrder:
8890
try:
8991
cur = Committee.objects.get(role=i).id
9092
if cur.active:
91-
outputList.append(Committee.objects.get(role=i).id)
93+
outputList.append(cur)
9294
else:
93-
outputList.append({"name": "Position not filled", "profile_picture": "url('/landing_placeholder.png')",
94-
"about": "", "pronouns": ""})
95+
outputList.append(placeholderMember)
9596
except Committee.DoesNotExist:
96-
outputList.append({"name": "Position not filled", "profile_picture": "url('/landing_placeholder.png')",
97-
"about": "", "pronouns": ""})
97+
outputList.append(placeholderMember)
9898
return outputList

0 commit comments

Comments
 (0)