James McCool commited on
Commit
5752545
·
1 Parent(s): 85eb84f

Adding some prints and adjusting FD names

Browse files
src/sports/nba_functions.py CHANGED
@@ -1006,8 +1006,8 @@ def DK_NBA_ROO_Build(dk_roo_player_hold):
1006
  return dk_roo_player_hold.copy()
1007
 
1008
  def FD_NBA_ROO_Build(fd_roo_player_hold):
1009
- wrong_name = ['Lu Dort', 'Carlton Carrington']
1010
- right_name = ['Luguentz Dort', 'Bub Carrington']
1011
  for slates in slate_options:
1012
 
1013
  if slates == 'Main Slate':
@@ -1351,8 +1351,8 @@ def DK_SD_NBA_ROO_Build(dk_sd_player_hold, dk_showdown_options, dk_sd_projection
1351
  return dk_sd_player_hold.copy()
1352
 
1353
  def FD_SD_NBA_ROO_Build(fd_sd_player_hold, fd_showdown_options, fd_sd_projections):
1354
- wrong_name = ['Lu Dort', 'Carlton Carrington']
1355
- right_name = ['Luguentz Dort', 'Bub Carrington']
1356
  total_sims = 1000
1357
  for slates in fd_showdown_options:
1358
 
@@ -1685,8 +1685,8 @@ def FD_NBA_SD_seed_frame(fd_showdown_options, fd_sd_projections):
1685
 
1686
  wrong_team = ['GS', 'NO', 'SA', 'NY']
1687
  right_team = ['GSW', 'NOP', 'SAS', 'NYK']
1688
- wrong_name = ['Lu Dort', 'Carlton Carrington']
1689
- right_name = ['Luguentz Dort', 'Bub Carrington']
1690
 
1691
  all_players_median = []
1692
  all_cpt_median = []
@@ -2030,8 +2030,8 @@ def FD_NBA_seed_frame(roo_file, client):
2030
  db = client['NBA_Database']
2031
 
2032
  raw_proj = roo_file[roo_file['site'] == 'Fanduel'].copy()
2033
- wrong_name = ['Lu Dort', 'Carlton Carrington']
2034
- right_name = ['Luguentz Dort', 'Bub Carrington']
2035
 
2036
  for slates in slate_options:
2037
  optimal_lineups = []
 
1006
  return dk_roo_player_hold.copy()
1007
 
1008
  def FD_NBA_ROO_Build(fd_roo_player_hold):
1009
+ wrong_name = ['Lu Dort', 'Carlton Carrington', 'Alexandre Sarr']
1010
+ right_name = ['Luguentz Dort', 'Bub Carrington', 'Alex Sarr']
1011
  for slates in slate_options:
1012
 
1013
  if slates == 'Main Slate':
 
1351
  return dk_sd_player_hold.copy()
1352
 
1353
  def FD_SD_NBA_ROO_Build(fd_sd_player_hold, fd_showdown_options, fd_sd_projections):
1354
+ wrong_name = ['Lu Dort', 'Carlton Carrington', 'Alexandre Sarr']
1355
+ right_name = ['Luguentz Dort', 'Bub Carrington', 'Alex Sarr']
1356
  total_sims = 1000
1357
  for slates in fd_showdown_options:
1358
 
 
1685
 
1686
  wrong_team = ['GS', 'NO', 'SA', 'NY']
1687
  right_team = ['GSW', 'NOP', 'SAS', 'NYK']
1688
+ wrong_name = ['Lu Dort', 'Carlton Carrington', 'Alexandre Sarr']
1689
+ right_name = ['Luguentz Dort', 'Bub Carrington', 'Alex Sarr']
1690
 
1691
  all_players_median = []
1692
  all_cpt_median = []
 
2030
  db = client['NBA_Database']
2031
 
2032
  raw_proj = roo_file[roo_file['site'] == 'Fanduel'].copy()
2033
+ wrong_name = ['Lu Dort', 'Carlton Carrington', 'Alexandre Sarr']
2034
+ right_name = ['Luguentz Dort', 'Bub Carrington', 'Alex Sarr']
2035
 
2036
  for slates in slate_options:
2037
  optimal_lineups = []
src/streamlit_app.py CHANGED
@@ -316,7 +316,8 @@ if selected_tab == "NFL Updates":
316
  time_sleep(1)
317
  else:
318
  pass
319
-
 
320
  time_sleep(1)
321
 
322
  if FD_Team_Level_Stacks_var == 0:
@@ -341,6 +342,7 @@ if selected_tab == "NFL Updates":
341
  else:
342
  pass
343
 
 
344
  time_sleep(1)
345
 
346
  if DK_ROO_Structure_Creation_var == 0:
@@ -366,6 +368,7 @@ if selected_tab == "NFL Updates":
366
  else:
367
  pass
368
 
 
369
  time_sleep(1)
370
 
371
  if FD_ROO_Structure_Creation_var == 0:
@@ -390,18 +393,21 @@ if selected_tab == "NFL Updates":
390
  else:
391
  pass
392
 
 
393
  time_sleep(1)
394
 
395
  if DK_seed_frame_var == 0:
396
  DK_seed_frame(DK_ROO, seed_team_acro, short_team_acro, client)
397
  DK_seed_frame_var = 1
398
-
 
399
  time_sleep(1)
400
 
401
  if FD_seed_frame_var == 0:
402
  FD_seed_frame(FD_ROO, seed_team_acro, short_team_acro, client)
403
  FD_seed_frame_var = 1
404
-
 
405
  time_sleep(1)
406
 
407
  if Prop_Data_Creation_var == 0:
@@ -426,6 +432,7 @@ if selected_tab == "NFL Updates":
426
  else:
427
  pass
428
 
 
429
  time_sleep(1)
430
 
431
  if DK_SD_ROO_var == 0:
@@ -451,6 +458,7 @@ if selected_tab == "NFL Updates":
451
  else:
452
  pass
453
 
 
454
  time_sleep(1)
455
 
456
  if FD_SD_ROO_var == 0:
@@ -475,18 +483,21 @@ if selected_tab == "NFL Updates":
475
  else:
476
  pass
477
 
 
478
  time_sleep(1)
479
 
480
  if DK_SD_seed_frame_var == 0:
481
  DK_SD_seed_frame(dk_sd_roo_result, team_only_acro, long_team_acro, client, dk_showdown_options, dk_sd_projections)
482
  DK_SD_seed_frame_var = 1
483
 
 
484
  time_sleep(1)
485
 
486
  if FD_SD_seed_frame_var == 0:
487
  FD_SD_seed_frame(fd_sd_roo_result, team_only_acro, long_team_acro, client, fd_showdown_options, fd_sd_projections)
488
  FD_SD_seed_frame_var = 1
489
 
 
490
  time_sleep(1)
491
 
492
  print (f'currently on run {x}, {high_end - x} runs remaining')
 
316
  time_sleep(1)
317
  else:
318
  pass
319
+
320
+ st.write(content="NFL Draftkings Team Level Stacks refreshed")
321
  time_sleep(1)
322
 
323
  if FD_Team_Level_Stacks_var == 0:
 
342
  else:
343
  pass
344
 
345
+ st.write(content="NFL Fanduel Team Level Stacks refreshed")
346
  time_sleep(1)
347
 
348
  if DK_ROO_Structure_Creation_var == 0:
 
368
  else:
369
  pass
370
 
371
+ st.write(content="NFL Draftkings ROO structure refreshed")
372
  time_sleep(1)
373
 
374
  if FD_ROO_Structure_Creation_var == 0:
 
393
  else:
394
  pass
395
 
396
+ st.write(content="NFL Fanduel ROO structure refreshed")
397
  time_sleep(1)
398
 
399
  if DK_seed_frame_var == 0:
400
  DK_seed_frame(DK_ROO, seed_team_acro, short_team_acro, client)
401
  DK_seed_frame_var = 1
402
+
403
+ st.write(content="NFL Draftkings Seed Frames refreshed")
404
  time_sleep(1)
405
 
406
  if FD_seed_frame_var == 0:
407
  FD_seed_frame(FD_ROO, seed_team_acro, short_team_acro, client)
408
  FD_seed_frame_var = 1
409
+
410
+ st.write(content="NFL Fanduel Seed Frames refreshed")
411
  time_sleep(1)
412
 
413
  if Prop_Data_Creation_var == 0:
 
432
  else:
433
  pass
434
 
435
+ st.write(content="NFL Player Baselines refreshed")
436
  time_sleep(1)
437
 
438
  if DK_SD_ROO_var == 0:
 
458
  else:
459
  pass
460
 
461
+ st.write(content="NFL Draftkings SD ROO structure refreshed")
462
  time_sleep(1)
463
 
464
  if FD_SD_ROO_var == 0:
 
483
  else:
484
  pass
485
 
486
+ st.write(content="NFL Fanduel SD ROO structure refreshed")
487
  time_sleep(1)
488
 
489
  if DK_SD_seed_frame_var == 0:
490
  DK_SD_seed_frame(dk_sd_roo_result, team_only_acro, long_team_acro, client, dk_showdown_options, dk_sd_projections)
491
  DK_SD_seed_frame_var = 1
492
 
493
+ st.write(content="NFL Draftkings SD Seed Frames refreshed")
494
  time_sleep(1)
495
 
496
  if FD_SD_seed_frame_var == 0:
497
  FD_SD_seed_frame(fd_sd_roo_result, team_only_acro, long_team_acro, client, fd_showdown_options, fd_sd_projections)
498
  FD_SD_seed_frame_var = 1
499
 
500
+ st.write(content="NFL Fanduel SD Seed Frames refreshed")
501
  time_sleep(1)
502
 
503
  print (f'currently on run {x}, {high_end - x} runs remaining')