|
|
@@ -40,8 +40,6 @@ public class AnalysisTestController implements Initializable {
|
|
|
private static final float MIN_COVER_ODDS = 1.25f;
|
|
|
private static final float MAX_COVER_ODDS = 2.25f;
|
|
|
private static final DecimalFormat FLOAT_FORMATTER = new DecimalFormat("0.00");
|
|
|
- @FXML
|
|
|
- TableView<SoccerMatch> gameViewTable;
|
|
|
TableColumn<SoccerMatch, String> homeTeamNameColumn = new TableColumn<>("Home Team");
|
|
|
TableColumn<SoccerMatch, String> awayTeamNameColumn = new TableColumn<>("Away Team");
|
|
|
TableColumn<SoccerMatch, Float> odds1Column = new TableColumn<>("1");
|
|
|
@@ -54,19 +52,20 @@ public class AnalysisTestController implements Initializable {
|
|
|
TableColumn<SoccerMatch, String> analyzeValueColumn = new TableColumn<>("Value");
|
|
|
TableColumn<SoccerMatch, Float> matchBetAmountColumn = new TableColumn<>("Bet Amount");
|
|
|
TableColumn<SoccerMatch, Void> addBetColumn = new TableColumn<>("Add Bet");
|
|
|
- @FXML
|
|
|
- TableView<Bet> activeBetsTable;
|
|
|
TableColumn<Bet, String> matchupColumn = new TableColumn<>("Matchup");
|
|
|
TableColumn<Bet, Float> oddsColumn = new TableColumn<>("Odds");
|
|
|
TableColumn<Bet, Float> betAmountColumn = new TableColumn<>("BetAmount");
|
|
|
TableColumn<Bet, Bet.Status> statusColumn = new TableColumn<>("Status");
|
|
|
-
|
|
|
TableColumn<Bet, Integer> homeScoreColumn = new TableColumn<>("Home Score");
|
|
|
TableColumn<Bet, Integer> awayScoreColumn = new TableColumn<>("Away Score");
|
|
|
TableColumn<Bet, Integer> betCoveredNumberColumn = new TableColumn<>("Bet Covered Number");
|
|
|
+
|
|
|
+ @FXML
|
|
|
+ TableView<Bet> activeBetsTable;
|
|
|
+ @FXML
|
|
|
+ TableView<SoccerMatch> gameViewTable;
|
|
|
@FXML
|
|
|
TableView<Map<String, Object>> leagueBetStatsTable;
|
|
|
-
|
|
|
@FXML
|
|
|
TableColumn<Map, String> statsLeagueNameColumn = new TableColumn<>("League");
|
|
|
@FXML
|
|
|
@@ -77,7 +76,6 @@ public class AnalysisTestController implements Initializable {
|
|
|
TableColumn<Map, Float> statsHomePercentColumn = new TableColumn<>("Home Percent");
|
|
|
@FXML
|
|
|
TableColumn<Map, Integer> statsAwayWinColumn = new TableColumn<>("Away Win");
|
|
|
-
|
|
|
@FXML
|
|
|
TableColumn<Map, Integer> statsAwayLossColumn = new TableColumn<>("Away Loss");
|
|
|
@FXML
|
|
|
@@ -90,7 +88,6 @@ public class AnalysisTestController implements Initializable {
|
|
|
Button getMatchesButton;
|
|
|
@FXML
|
|
|
DatePicker date;
|
|
|
-
|
|
|
@FXML
|
|
|
TextField bankTextField;
|
|
|
@FXML
|
|
|
@@ -424,7 +421,7 @@ public class AnalysisTestController implements Initializable {
|
|
|
Bet bet = GuiMysql.getInstance().getAnalysisBet(betId);
|
|
|
|
|
|
if (data.getPreviousBet() != null) {
|
|
|
- data.getPreviousBet().setStatus(Status.COVERED);
|
|
|
+ data.getPreviousBet().setStatus(Status.COVERED); // TODO Kommer att förstöra om odds är utanför cover radious
|
|
|
bet.setCoveredBetId(data.getPreviousBet().getId());
|
|
|
GuiMysql.getInstance().setBetCovered(bet.getId(), bet.getCoveredBetId());
|
|
|
try {
|