diff --git a/shit-show/.dockerignore b/shit-show/.dockerignore index d0f964c..f5657ab 100644 --- a/shit-show/.dockerignore +++ b/shit-show/.dockerignore @@ -13,3 +13,5 @@ storage/framework/testing/* storage/framework/views/* storage/logs/* vendor/ + +mariadb-data diff --git a/shit-show/app/Http/Controllers/ShitController.php b/shit-show/app/Http/Controllers/ShitController.php index 34a0128..96716a5 100644 --- a/shit-show/app/Http/Controllers/ShitController.php +++ b/shit-show/app/Http/Controllers/ShitController.php @@ -57,7 +57,7 @@ class ShitController extends Controller public function highscores() { - $allshits = ShitUser::groupBy('user_id')->select('user_id', DB::raw('count(*) as total'))->orderByDesc('total')->get(); + $allshits = ShitUser::whereMonth('created_at', Carbon::now()->month)->groupBy('user_id')->select('user_id', DB::raw('count(*) as total'))->orderByDesc('total')->get(); $users = User::all()->sortBy('name'); return view('highscores')->with([