Skip to content

Commit

Permalink
push most up to date
Browse files Browse the repository at this point in the history
  • Loading branch information
August Fu committed Feb 6, 2024
1 parent 0830543 commit 77a2a83
Show file tree
Hide file tree
Showing 5 changed files with 12,076 additions and 5 deletions.
1 change: 1 addition & 0 deletions backend/PennCourses/settings/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -161,6 +161,7 @@
"CUSTOM_ADMIN": False,
}

CORS_ALLOW_ALL_ORIGINS=True

# Penn OpenData API
OPEN_DATA_CLIENT_ID = os.environ.get("OPEN_DATA_CLIENT_ID", "")
Expand Down
4 changes: 2 additions & 2 deletions backend/docker-compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,10 @@ services:
context: .
dockerfile: Dockerfile.dev
ports:
- "8000:8000"
- "8001:8001"
volumes:
- .:/backend
environment:
- REDIS_URL=redis://redis:6379/1
- DATABASE_URL=postgres://penn-courses:postgres@db:5432/postgres
command: pipenv run python manage.py runserver 0.0.0.0:8000
# command: pipenv run python manage.py runserver 0.0.0.0:8001
2 changes: 1 addition & 1 deletion frontend/degree-plan/components/FourYearPlan/Semester.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ const Semester = ({semester, addCourse, index, highlightReqId, removeCourseFromS
</div>
<div className="d-flex" ref={ref}>
<CoursesPlanned courses={semester.courses} highlightReqId={highlightReqId} semesterIndex={index} removeCourse={removeCourse} showCourseDetail={showCourseDetail}/>
{/* {showStats && <Stats courses={semester.courses}/>} */}
{showStats && <Stats courses={semester.courses}/>}
</div>
</div>
)
Expand Down
8 changes: 6 additions & 2 deletions frontend/degree-plan/components/FourYearPlan/Stats.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -46,10 +46,14 @@ const Stats = ({courses} : any) => {

return (
<Stack direction="column" spacing={1} style={statsStackStyle}>
<StatRow item={'Course'} score={course_quality}/>
{/* <StatRow item={'Course'} score={course_quality}/>
<StatRow item={'Instructor'} score={instructor_quality}/>
<StatRow item={'Difficulty'} score={difficulty}/>
<StatRow item={'Work Required'} score={work_required}/>
<StatRow item={'Work Required'} score={work_required}/> */}
<StatRow item={'Course'} score={3.3}/>
<StatRow item={'Instructor'} score={3.2}/>
<StatRow item={'Difficulty'} score={2.1}/>
<StatRow item={'Work Required'} score={1.0}/>
</Stack>
)
}
Expand Down
Loading

0 comments on commit 77a2a83

Please sign in to comment.