mirror of
https://github.com/SoDOff-Project/sodoff.git
synced 2025-10-11 08:18:49 -07:00
Removed a debugging line. I always forget to do that.
This commit is contained in:
parent
a68de970f1
commit
840109ba8d
@ -251,15 +251,6 @@ public class RatingController : Controller
|
|||||||
[Produces("application/xml")]
|
[Produces("application/xml")]
|
||||||
[Route("RatingWebService.asmx/GetTopRatedUserByCategoryID")]
|
[Route("RatingWebService.asmx/GetTopRatedUserByCategoryID")]
|
||||||
public IActionResult GetUserRanks([FromForm] int categoryID, [FromForm] int numberOfRecord) {
|
public IActionResult GetUserRanks([FromForm] int categoryID, [FromForm] int numberOfRecord) {
|
||||||
Console.WriteLine(new ArrayOfUserRatingRankInfo {
|
|
||||||
UserRatingRankInfo = ctx.RatingRanks
|
|
||||||
.Where(rr => rr.RatedUserID != null && (categoryID == rr.CategoryID
|
|
||||||
|| (categoryID == 4 && rr.CategoryID == 5) // The party board searches for 4 but the pod rating is set in 5.
|
|
||||||
))
|
|
||||||
.Take(numberOfRecord)
|
|
||||||
.Select(rr => new UserRatingRankInfo { RankInfo = new RatingRankInfo(rr) })
|
|
||||||
.ToArray()
|
|
||||||
});
|
|
||||||
return Ok(new ArrayOfUserRatingRankInfo {
|
return Ok(new ArrayOfUserRatingRankInfo {
|
||||||
UserRatingRankInfo = ctx.RatingRanks
|
UserRatingRankInfo = ctx.RatingRanks
|
||||||
.Where(rr => rr.RatedUserID != null && (categoryID == rr.CategoryID
|
.Where(rr => rr.RatedUserID != null && (categoryID == rr.CategoryID
|
||||||
|
Loading…
x
Reference in New Issue
Block a user