James McCool
commited on
Commit
·
9837076
1
Parent(s):
812883a
Just fixing some print
Browse files- src/streamlit_app.py +24 -24
src/streamlit_app.py
CHANGED
|
@@ -104,7 +104,7 @@ if selected_tab == "NHL Updates":
|
|
| 104 |
build_prop_betting_table(nhl_db)
|
| 105 |
|
| 106 |
try:
|
| 107 |
-
st.write(
|
| 108 |
except:
|
| 109 |
pass
|
| 110 |
|
|
@@ -113,10 +113,10 @@ if selected_tab == "NHL Updates":
|
|
| 113 |
|
| 114 |
try:
|
| 115 |
if roo_file is not None:
|
| 116 |
-
st.write(
|
| 117 |
st.table(roo_file.head(10))
|
| 118 |
else:
|
| 119 |
-
st.write(
|
| 120 |
st.stop()
|
| 121 |
except Exception as e:
|
| 122 |
st.write(f"Error: {e}")
|
|
@@ -156,7 +156,7 @@ if selected_tab == "NHL Updates":
|
|
| 156 |
time_sleep(1)
|
| 157 |
|
| 158 |
try:
|
| 159 |
-
st.write(
|
| 160 |
except:
|
| 161 |
pass
|
| 162 |
|
|
@@ -183,7 +183,7 @@ if selected_tab == "NHL Updates":
|
|
| 183 |
time_sleep(1)
|
| 184 |
|
| 185 |
try:
|
| 186 |
-
st.write(
|
| 187 |
except:
|
| 188 |
pass
|
| 189 |
|
|
@@ -255,7 +255,7 @@ if selected_tab == "NHL Updates":
|
|
| 255 |
DK_NHL_seed_frame(nhl_db, roo_file)
|
| 256 |
|
| 257 |
try:
|
| 258 |
-
st.write(
|
| 259 |
except:
|
| 260 |
pass
|
| 261 |
|
|
@@ -265,7 +265,7 @@ if selected_tab == "NHL Updates":
|
|
| 265 |
FD_NHL_seed_frame(nhl_db, roo_file)
|
| 266 |
|
| 267 |
try:
|
| 268 |
-
st.write(
|
| 269 |
except:
|
| 270 |
pass
|
| 271 |
|
|
@@ -620,12 +620,12 @@ if selected_tab == "NBA Updates":
|
|
| 620 |
|
| 621 |
if ROO_creation_var == 1:
|
| 622 |
try:
|
| 623 |
-
st.write(
|
| 624 |
except:
|
| 625 |
pass
|
| 626 |
else:
|
| 627 |
try:
|
| 628 |
-
st.write(
|
| 629 |
except:
|
| 630 |
pass
|
| 631 |
|
|
@@ -633,25 +633,25 @@ if selected_tab == "NBA Updates":
|
|
| 633 |
|
| 634 |
upload_dfs_data(client, roo_final)
|
| 635 |
try:
|
| 636 |
-
st.write(
|
| 637 |
except:
|
| 638 |
pass
|
| 639 |
|
| 640 |
upload_betting_data(client)
|
| 641 |
try:
|
| 642 |
-
st.write(
|
| 643 |
except:
|
| 644 |
pass
|
| 645 |
|
| 646 |
try:
|
| 647 |
trending_script()
|
| 648 |
try:
|
| 649 |
-
st.write(
|
| 650 |
except:
|
| 651 |
pass
|
| 652 |
except:
|
| 653 |
try:
|
| 654 |
-
st.write(
|
| 655 |
except:
|
| 656 |
pass
|
| 657 |
|
|
@@ -661,12 +661,12 @@ if selected_tab == "NBA Updates":
|
|
| 661 |
|
| 662 |
if DK_seed_frame_var == 1:
|
| 663 |
try:
|
| 664 |
-
st.write(
|
| 665 |
except:
|
| 666 |
pass
|
| 667 |
else:
|
| 668 |
try:
|
| 669 |
-
st.write(
|
| 670 |
except:
|
| 671 |
pass
|
| 672 |
|
|
@@ -678,12 +678,12 @@ if selected_tab == "NBA Updates":
|
|
| 678 |
|
| 679 |
if FD_seed_frame_var == 1:
|
| 680 |
try:
|
| 681 |
-
st.write(
|
| 682 |
except:
|
| 683 |
pass
|
| 684 |
else:
|
| 685 |
try:
|
| 686 |
-
st.write(
|
| 687 |
except:
|
| 688 |
pass
|
| 689 |
|
|
@@ -717,12 +717,12 @@ if selected_tab == "NBA Updates":
|
|
| 717 |
|
| 718 |
if ROO_creation_var == 1:
|
| 719 |
try:
|
| 720 |
-
st.write(
|
| 721 |
except:
|
| 722 |
pass
|
| 723 |
else:
|
| 724 |
try:
|
| 725 |
-
st.write(
|
| 726 |
except:
|
| 727 |
pass
|
| 728 |
|
|
@@ -734,12 +734,12 @@ if selected_tab == "NBA Updates":
|
|
| 734 |
|
| 735 |
if DK_SD_seed_frame_var == 1:
|
| 736 |
try:
|
| 737 |
-
st.write(
|
| 738 |
except:
|
| 739 |
pass
|
| 740 |
else:
|
| 741 |
try:
|
| 742 |
-
st.write(
|
| 743 |
except:
|
| 744 |
pass
|
| 745 |
|
|
@@ -751,12 +751,12 @@ if selected_tab == "NBA Updates":
|
|
| 751 |
|
| 752 |
if FD_SD_seed_frame_var == 1:
|
| 753 |
try:
|
| 754 |
-
st.write(
|
| 755 |
except:
|
| 756 |
pass
|
| 757 |
else:
|
| 758 |
try:
|
| 759 |
-
st.write(
|
| 760 |
except:
|
| 761 |
pass
|
| 762 |
|
|
@@ -764,7 +764,7 @@ if selected_tab == "NBA Updates":
|
|
| 764 |
|
| 765 |
upload_sd_dfs_data(client, sd_roo_final)
|
| 766 |
try:
|
| 767 |
-
st.write(
|
| 768 |
except:
|
| 769 |
pass
|
| 770 |
|
|
|
|
| 104 |
build_prop_betting_table(nhl_db)
|
| 105 |
|
| 106 |
try:
|
| 107 |
+
st.write("NHL Prop Betting Table refreshed")
|
| 108 |
except:
|
| 109 |
pass
|
| 110 |
|
|
|
|
| 113 |
|
| 114 |
try:
|
| 115 |
if roo_file is not None:
|
| 116 |
+
st.write("NHL Draftkings Player Level ROO refreshed")
|
| 117 |
st.table(roo_file.head(10))
|
| 118 |
else:
|
| 119 |
+
st.write("NHL Draftkings Player Level ROO generation failed")
|
| 120 |
st.stop()
|
| 121 |
except Exception as e:
|
| 122 |
st.write(f"Error: {e}")
|
|
|
|
| 156 |
time_sleep(1)
|
| 157 |
|
| 158 |
try:
|
| 159 |
+
st.write("NHL Stack Matrix refreshed")
|
| 160 |
except:
|
| 161 |
pass
|
| 162 |
|
|
|
|
| 183 |
time_sleep(1)
|
| 184 |
|
| 185 |
try:
|
| 186 |
+
st.write("NHL Powerplay Stack Matrix refreshed")
|
| 187 |
except:
|
| 188 |
pass
|
| 189 |
|
|
|
|
| 255 |
DK_NHL_seed_frame(nhl_db, roo_file)
|
| 256 |
|
| 257 |
try:
|
| 258 |
+
st.write("NHL Draftkings Seed Frames refreshed")
|
| 259 |
except:
|
| 260 |
pass
|
| 261 |
|
|
|
|
| 265 |
FD_NHL_seed_frame(nhl_db, roo_file)
|
| 266 |
|
| 267 |
try:
|
| 268 |
+
st.write("NHL Fanduel Seed Frames refreshed")
|
| 269 |
except:
|
| 270 |
pass
|
| 271 |
|
|
|
|
| 620 |
|
| 621 |
if ROO_creation_var == 1:
|
| 622 |
try:
|
| 623 |
+
st.write("NBA ROO structure refreshed")
|
| 624 |
except:
|
| 625 |
pass
|
| 626 |
else:
|
| 627 |
try:
|
| 628 |
+
st.write("NBA ROO structure script broke")
|
| 629 |
except:
|
| 630 |
pass
|
| 631 |
|
|
|
|
| 633 |
|
| 634 |
upload_dfs_data(client, roo_final)
|
| 635 |
try:
|
| 636 |
+
st.write("NBA DFS database refreshed")
|
| 637 |
except:
|
| 638 |
pass
|
| 639 |
|
| 640 |
upload_betting_data(client)
|
| 641 |
try:
|
| 642 |
+
st.write("NBA betting database refreshed")
|
| 643 |
except:
|
| 644 |
pass
|
| 645 |
|
| 646 |
try:
|
| 647 |
trending_script()
|
| 648 |
try:
|
| 649 |
+
st.write("NBA Trending Tables refreshed")
|
| 650 |
except:
|
| 651 |
pass
|
| 652 |
except:
|
| 653 |
try:
|
| 654 |
+
st.write("NBA Trending Tables broke")
|
| 655 |
except:
|
| 656 |
pass
|
| 657 |
|
|
|
|
| 661 |
|
| 662 |
if DK_seed_frame_var == 1:
|
| 663 |
try:
|
| 664 |
+
st.write("NBA Draftkings Seed Frames refreshed")
|
| 665 |
except:
|
| 666 |
pass
|
| 667 |
else:
|
| 668 |
try:
|
| 669 |
+
st.write("NBA Draftkings Seed Frames script broke")
|
| 670 |
except:
|
| 671 |
pass
|
| 672 |
|
|
|
|
| 678 |
|
| 679 |
if FD_seed_frame_var == 1:
|
| 680 |
try:
|
| 681 |
+
st.write("NBA Fanduel Seed Frames refreshed")
|
| 682 |
except:
|
| 683 |
pass
|
| 684 |
else:
|
| 685 |
try:
|
| 686 |
+
st.write("NBA Fanduel Seed Frames script broke")
|
| 687 |
except:
|
| 688 |
pass
|
| 689 |
|
|
|
|
| 717 |
|
| 718 |
if ROO_creation_var == 1:
|
| 719 |
try:
|
| 720 |
+
st.write("NBA SD ROO structure refreshed")
|
| 721 |
except:
|
| 722 |
pass
|
| 723 |
else:
|
| 724 |
try:
|
| 725 |
+
st.write("NBA SD ROO structure script broke")
|
| 726 |
except:
|
| 727 |
pass
|
| 728 |
|
|
|
|
| 734 |
|
| 735 |
if DK_SD_seed_frame_var == 1:
|
| 736 |
try:
|
| 737 |
+
st.write("NBA Draftkings SD Seed Frames refreshed")
|
| 738 |
except:
|
| 739 |
pass
|
| 740 |
else:
|
| 741 |
try:
|
| 742 |
+
st.write("NBA Draftkings SD Seed Frames script broke")
|
| 743 |
except:
|
| 744 |
pass
|
| 745 |
|
|
|
|
| 751 |
|
| 752 |
if FD_SD_seed_frame_var == 1:
|
| 753 |
try:
|
| 754 |
+
st.write("NBA Fanduel SD Seed Frames refreshed")
|
| 755 |
except:
|
| 756 |
pass
|
| 757 |
else:
|
| 758 |
try:
|
| 759 |
+
st.write("NBA Fanduel SD Seed Frames script broke")
|
| 760 |
except:
|
| 761 |
pass
|
| 762 |
|
|
|
|
| 764 |
|
| 765 |
upload_sd_dfs_data(client, sd_roo_final)
|
| 766 |
try:
|
| 767 |
+
st.write("NBA SD DFS database refreshed")
|
| 768 |
except:
|
| 769 |
pass
|
| 770 |
|