Correction des différents bugs

This commit is contained in:
2024-11-27 16:30:59 +01:00
parent 780798ff25
commit cda2104b11
25 changed files with 1096 additions and 334 deletions

View File

@@ -65,10 +65,10 @@ class Contests extends Component
public function render()
{
$datefin = Carbon::now()->addDays(3)->format('Y-m-d');
$contests = Contest::where('fin', '>=', now())
$contests = Contest::where('fin', '>=', Carbon::now()->format('Y-m-d'))
->where('fin', '<=', $datefin)
->where('participated', '!=', true)
//->where('enable', true)
->where('enable', true)
->orderBy('fin', 'asc')
->paginate(20);