mirror of
https://github.com/Mezeporta/Erupe.git
synced 2025-12-14 16:04:38 +01:00
add PS3_TROP to constant courses
This commit is contained in:
@@ -66,7 +66,7 @@ func CourseExists(ID uint16, c []Course) bool {
|
|||||||
|
|
||||||
// GetCourseStruct returns a slice of Course(s) from a rights integer
|
// GetCourseStruct returns a slice of Course(s) from a rights integer
|
||||||
func GetCourseStruct(rights uint32) ([]Course, uint32) {
|
func GetCourseStruct(rights uint32) ([]Course, uint32) {
|
||||||
resp := []Course{{ID: 1}, {ID: 24}}
|
resp := []Course{{ID: 1}, {ID: 23}, {ID: 24}}
|
||||||
s := Courses()
|
s := Courses()
|
||||||
slices.SortStableFunc(s, func(i, j Course) bool {
|
slices.SortStableFunc(s, func(i, j Course) bool {
|
||||||
return i.ID > j.ID
|
return i.ID > j.ID
|
||||||
|
|||||||
Reference in New Issue
Block a user