Skip to content

Commit

Permalink
spelling
Browse files Browse the repository at this point in the history
  • Loading branch information
yuuwe-n committed Aug 16, 2022
1 parent f01bfab commit f7c123e
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions js/script.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ const Banner = () => {
className: "hero-body"
}, /*#__PURE__*/React.createElement("p", {
className: "title is-4 white"
}, "ratemyprofessors.help"), /*#__PURE__*/React.createElement("p", {
}, "RateMyProfessors.help"), /*#__PURE__*/React.createElement("p", {
className: "subtitle is-5 white"
}, "A Rate My Professors Helper! beta")));
};
Expand Down Expand Up @@ -129,7 +129,7 @@ const Footer = () => {
className: "black footer1"
}, /*#__PURE__*/React.createElement("div", {
className: "content has-text-centered"
}, /*#__PURE__*/React.createElement("p", null, "ratemyprofessors.help by Duy Nguyen and Raymond Lin. The source code is licensed under the MIT license.")));
}, /*#__PURE__*/React.createElement("p", null, "RateMyProfessors.help by Duy Nguyen and Raymond Lin. The source code is licensed under the MIT license.")));
}; // add container to root then render- updated for React 18


Expand Down
3 changes: 1 addition & 2 deletions ranking.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ import (
)

// return ranking of courses based off school, and course name

// first return courses that contain course name

type Course struct {
Expand Down Expand Up @@ -42,6 +41,7 @@ os.open school json
if err != nil
return N/A to webserver
*/

func GetJson(file string) []Course {

jsonFile, err := os.Open(file)
Expand Down Expand Up @@ -74,7 +74,6 @@ func (a ByRanking) Len() int { return len(a) }
func (a ByRanking) Swap(i, j int) { a[i], a[j] = a[j], a[i] }

// make it rank if ranks are equal, compare number of ratins
//
func (a ByRanking) Less(i, j int) bool { return a[i].Rating > a[j].Rating }

func GetRanked(courses []Course, input string) []Course {
Expand Down
1 change: 1 addition & 0 deletions webserver.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ func main() {
// router.GET("/get_courses", getCourses) API

log.Fatal(http.ListenAndServe("127.0.0.1:8080", router))

// UNCOMMENT THIS AND COMMENT ABOVE TO GET TLS WORKING
// log.Fatal(http.ListenAndServeTLS("127.0.0.1:8080", "/etc/sslratemyprofessor.crt", "/etc/ssl/private/ratemyprofessor.key", router))

Expand Down

0 comments on commit f7c123e

Please sign in to comment.