mirror of
https://github.com/PretendoNetwork/super-mario-maker.git
synced 2026-08-02 08:32:15 -05:00
19 lines
461 B
Go
19 lines
461 B
Go
package database
|
|
|
|
import "github.com/PretendoNetwork/super-mario-maker-secure/types"
|
|
|
|
func GetCourseMetadataByDataIDs(dataIDs []uint64) []*types.CourseMetadata {
|
|
// TODO: Do this in one query?
|
|
courseMetadatas := make([]*types.CourseMetadata, 0)
|
|
|
|
for _, dataID := range dataIDs {
|
|
courseMetadata := GetCourseMetadataByDataID(dataID)
|
|
|
|
if courseMetadata != nil {
|
|
courseMetadatas = append(courseMetadatas, courseMetadata)
|
|
}
|
|
}
|
|
|
|
return courseMetadatas
|
|
}
|