ending contracts

This commit is contained in:
2019-05-03 00:11:13 -05:00
parent 4b7e2f0fa2
commit 0c641b5d62

View File

@@ -48,7 +48,8 @@ class ContractController extends Controller
$i = 0; $i = 0;
//Fetch all of the current contracts from the database //Fetch all of the current contracts from the database
$contractsTemp = Contract::where('end_date', '>=', $today)->get()->toArray(); $contractsTemp = Contract::where('end_date', '>=', $today)
->where(['finished' => false])->get()->toArray();
//Count the number of bids, and add them to the arrays //Count the number of bids, and add them to the arrays
for($i = 0; $i < sizeof($contractsTemp); $i++) { for($i = 0; $i < sizeof($contractsTemp); $i++) {