From 6e2757134ffe370cfb08838e66e804bbc925fc34 Mon Sep 17 00:00:00 2001 From: drkthunder02 Date: Fri, 3 May 2019 00:08:57 -0500 Subject: [PATCH] ending contracts --- app/Http/Controllers/ContractController.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/Http/Controllers/ContractController.php b/app/Http/Controllers/ContractController.php index d13a2a6e9..58d4cfc6e 100644 --- a/app/Http/Controllers/ContractController.php +++ b/app/Http/Controllers/ContractController.php @@ -81,7 +81,7 @@ class ContractController extends Controller //Fetch all of the current contracts from the database $contractsTemp = Contract::where('end_date', '>=', $today) - ->where(['type' => 'Public'])->get()->toArray(); + ->where(['type' => 'Public', 'finished' => false])->get()->toArray(); //Count the number of bids, and add them to the arrays for($i = 0; $i < sizeof($contractsTemp); $i++) { @@ -132,7 +132,7 @@ class ContractController extends Controller //Fetch all of the current contracts from the database $contractsTemp = Contract::where('end_date', '>=', $today) - ->where(['type' => 'Private'])->get(); + ->where(['type' => 'Private', 'finished' => false])->get(); //Count the number of bids, and add them to the arrays for($i = 0; $i < sizeof($contractsTemp); $i++) {