<?php
require_once dirname(__DIR__) . '/bootstrap/chairman_bootstrap.php';
$raceDate = isset($_GET['race_date']) ? chairman_safe_date($_GET['race_date']) : date('Y-m-d');
$venue = isset($_GET['venue']) ? $_GET['venue'] : '';
$raceNum = isset($_GET['race_num']) ? intval($_GET['race_num']) : 0;
chairman_json_response($Chairman->runProductionEngine($raceDate,$venue,$raceNum));
