Added specific check for shutters PID to test things

This commit is contained in:
Jonathan Barrow
2022-02-05 17:15:34 -05:00
parent 634e4d1062
commit 57a3cc61a7

View File

@@ -10,10 +10,16 @@ func recommendedCourseSearchObject(err error, client *nex.Client, callID uint32,
pRankingResults := make([]*nexproto.DataStoreCustomRankingResult, 0)
courseMetadatas := getCourseMetadatasByLimit(100) // In PCAPs param.minimalRatingFrequency is 100 but is 0 here?
for _, courseMetadata := range courseMetadatas {
// TEMP FOR SHUTTER TO TEST THINGS
if client.PID() == 1049991375 {
courseMetadata := getCourseMetadataByDataID(145)
pRankingResults = append(pRankingResults, courseMetadataToDataStoreCustomRankingResult(courseMetadata))
} else {
courseMetadatas := getCourseMetadatasByLimit(100) // In PCAPs param.minimalRatingFrequency is 100 but is 0 here?
for _, courseMetadata := range courseMetadatas {
pRankingResults = append(pRankingResults, courseMetadataToDataStoreCustomRankingResult(courseMetadata))
}
}
rmcResponseStream := nex.NewStreamOut(nexServer)