Where clause tweak to leaderboard module
This commit is contained in:
parent
5bf74c071e
commit
8e6419e0f5
@ -21,8 +21,7 @@ class LeaderBoardModule extends Gdn_Module {
|
||||
->From('User u')
|
||||
->Join('UserPoints up', 'u.UserID = up.UserID')
|
||||
->Where('up.SlotType', $SlotType)
|
||||
->Where('up.Source', 'Total')
|
||||
->OrderBy('up.TimeSlot', 'desc')
|
||||
->Where('up.TimeSlot', gmdate('Y-m-d', Gdn_Statistics::TimeSlotStamp($SlotType)))
|
||||
->OrderBy('up.Points', 'desc')
|
||||
->Limit(10, 0)
|
||||
->Get()
|
||||
|
Loading…
x
Reference in New Issue
Block a user