Closed davidlhw closed 2 months ago
currently, the search result statistics is hardcoded but it should reflect the accurate statistics based on what's available on the database
update SQL in these functions:
src/common/functions/searchCourse.ts
src/common/functions/searchProf.ts
update hardcoded stat value at:
src/common/components/SearchResult/SearchResultContent/SearchResultContent.tsx#L78-L79
src/common/components/SearchResult/SearchResultContent/SearchResultContent.tsx#L91-L92
Features
currently, the search result statistics is hardcoded but it should reflect the accurate statistics based on what's available on the database
Core
Optional
Implementation
update SQL in these functions:
src/common/functions/searchCourse.ts
src/common/functions/searchProf.ts
update hardcoded stat value at:
src/common/components/SearchResult/SearchResultContent/SearchResultContent.tsx#L78-L79
src/common/components/SearchResult/SearchResultContent/SearchResultContent.tsx#L91-L92
Potential Issues