Skip to content

Commit

Permalink
Fix: Add studentType for all academic search result.
Browse files Browse the repository at this point in the history
  • Loading branch information
huGgW committed Mar 18, 2024
1 parent e039808 commit 20a49b1
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ data class AcademicsSearchResElement(
val language: String,
val name: String,
val postType: AcademicsSearchType,
val studentType: AcademicsStudentType? = null,
val studentType: AcademicsStudentType,
val academicType: AcademicsPostType? = null,
val partialDescription: String,
val boldStartIndex: Int,
Expand Down Expand Up @@ -66,6 +66,7 @@ data class AcademicsSearchResElement(
LanguageType.makeLowercase(it)
},
postType = AcademicsSearchType.COURSE,
studentType = academicsSearch.course!!.studentType,
partialDescription = partialDescription.replace("\n", " "),
boldStartIndex = startIdx ?: 0,
boldEndIndex = startIdx?.plus(keyword.length) ?: 0
Expand All @@ -87,6 +88,7 @@ data class AcademicsSearchResElement(
LanguageType.makeLowercase(it)
},
postType = AcademicsSearchType.SCHOLARSHIP,
studentType = academicsSearch.scholarship!!.studentType,
partialDescription = partialDescription.replace("\n", " "),
boldStartIndex = startIdx ?: 0,
boldEndIndex = startIdx?.plus(keyword.length) ?: 0
Expand Down

0 comments on commit 20a49b1

Please sign in to comment.