Potential quick fix for leaderboard module

This commit is contained in:
Zachary Doll 2013-12-02 16:51:18 -06:00
parent 7cdaaf0c86
commit c38a12d6bd

View File

@ -22,7 +22,7 @@ class LeaderBoardModule extends Gdn_Module {
->Join('UserPoints up', 'u.UserID = up.UserID')
->Where('up.SlotType', $SlotType)
->Where('up.Source', 'Total')
->OrderBy('up.Points', 'desc')
->OrderBy('up.TimeSlot', 'desc')
->Limit(10, 0)
->Get()
->Result();