BraydenMoore commited on
Commit
ad2e206
β€’
1 Parent(s): d16c351

Add pushes

Browse files
Source/Predict/predict.py CHANGED
@@ -147,6 +147,7 @@ def predict(home,away,season,week,total):
147
  try:
148
  result = results.loc[results['game_id']==game_id, 'total'].item()
149
  over_under_result = 'Over' if float(result)>float(total) else 'Push' if float(result)==float(total) else 'Under'
 
150
  except:
151
  over_under_result = 'N/A'
152
 
 
147
  try:
148
  result = results.loc[results['game_id']==game_id, 'total'].item()
149
  over_under_result = 'Over' if float(result)>float(total) else 'Push' if float(result)==float(total) else 'Under'
150
+ print(float(result), float(total))
151
  except:
152
  over_under_result = 'N/A'
153
 
Templates/index.html CHANGED
@@ -579,11 +579,10 @@
579
  overEmojiDiv.className = 'emoji';
580
 
581
  overUnderDiv.dataset.proba = Math.floor(data.over_unders[index]['Probability'][0] * 100).toFixed(0);
582
- if (data.over_unders[index]['Over/Under'][0] === data.over_unders[index]['Result']) {
583
- console.log(data.over_unders[index]['Result']);
584
  overEmojiDiv.textContent = 'βœ…';
585
  }
586
- else if (data.over_unders[index]['Over/Under'][0] === 'Push') {
587
  overEmojiDiv.textContent = '(PUSH)';
588
  }
589
  else {
 
579
  overEmojiDiv.className = 'emoji';
580
 
581
  overUnderDiv.dataset.proba = Math.floor(data.over_unders[index]['Probability'][0] * 100).toFixed(0);
582
+ if (data.over_unders[index]['Over/Under'][0] === data.over_unders[index]['Result']) {
 
583
  overEmojiDiv.textContent = 'βœ…';
584
  }
585
+ else if (data.over_unders[index]['Result'] === 'Push') {
586
  overEmojiDiv.textContent = '(PUSH)';
587
  }
588
  else {