Multichem commited on
Commit
8ae9d48
·
verified ·
1 Parent(s): b81ce47

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +36 -10
app.py CHANGED
@@ -11,6 +11,10 @@ weekly_dwain_url = "https://www.fantasylife.com/api/projections/v1/nfl/james/gam
11
  weekly_freedman_url = "https://www.fantasylife.com/api/projections/v1/nfl/freedman/game/update"
12
  weekly_agg_url = "https://www.fantasylife.com/api/projections/v1/nfl/aggregate/game/update"
13
 
 
 
 
 
14
  headers = {
15
  'Authorization': 'Bearer 6984da1f-2c81-4140-8206-d018af38533f',
16
  }
@@ -19,41 +23,63 @@ with st.container():
19
  col1, col2, col3 = st.columns([3, 3, 3])
20
 
21
  with col1:
22
- st.info("Update Dwain's FantasyLife Season Long Projections")
23
- if st.button("Dwain Projection Update (Seasonal)", key='reset1'):
24
  response = requests.post(dwain_url, headers=headers)
25
  if response.status_code == 200:
26
  st.write("Uploading!")
27
  with col2:
28
- st.info("Update Freedman's FantasyLife Season Long Projections")
29
- if st.button("Freedman Projection Update (Seasonal)", key='reset2'):
30
  response = requests.post(freedman_url, headers=headers)
31
  if response.status_code == 200:
32
  st.write("Uploading!")
33
  with col3:
34
- st.info("Update the Aggregate FantasyLife Season Long Projections")
35
- if st.button("Aggregate Projection Update (Seasonal)", key='reset3'):
36
  response = requests.post(agg_url, headers=headers)
37
  if response.status_code == 200:
38
  st.write("Uploading!")
39
-
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
40
  with st.container():
41
  col1, col2, col3 = st.columns([3, 3, 3])
42
 
43
  with col1:
44
- st.info("Update Dwain's FantasyLife Season Long Projections")
45
  if st.button("Dwain Projection Update (Weekly)", key='reset4'):
46
  response = requests.post(weekly_dwain_url, headers=headers)
47
  if response.status_code == 200:
48
  st.write("Uploading!")
49
  with col2:
50
- st.info("Update Freedman's FantasyLife Season Long Projections")
51
  if st.button("Freedman Projection Update (Weekly)", key='reset5'):
52
  response = requests.post(weekly_freedman_url, headers=headers)
53
  if response.status_code == 200:
54
  st.write("Uploading!")
55
  with col3:
56
- st.info("Update the Aggregate FantasyLife Season Long Projections")
57
  if st.button("Aggregate Projection Update (Weekly)", key='reset6'):
58
  response = requests.post(weekly_agg_url, headers=headers)
59
  if response.status_code == 200:
 
11
  weekly_freedman_url = "https://www.fantasylife.com/api/projections/v1/nfl/freedman/game/update"
12
  weekly_agg_url = "https://www.fantasylife.com/api/projections/v1/nfl/aggregate/game/update"
13
 
14
+ dev_dwain_url = "https://www.fantasylife.dev.spotlightsportsb2b.com/api/projections/v1/nfl/dwain/season/update"
15
+ dev_freedman_url = "https://www.fantasylife.dev.spotlightsportsb2b.com/api/projections/v1/nfl/freedman/season/update"
16
+ dev_agg_url = "https://www.fantasylife.dev.spotlightsportsb2b.com/api/projections/v1/nfl/aggregate/season/update"
17
+
18
  headers = {
19
  'Authorization': 'Bearer 6984da1f-2c81-4140-8206-d018af38533f',
20
  }
 
23
  col1, col2, col3 = st.columns([3, 3, 3])
24
 
25
  with col1:
26
+ st.info("Update Dwain's LIVE SITE FantasyLife Season Long Projections")
27
+ if st.button("Dwain Projection Update (Live Seasonal)", key='reset1'):
28
  response = requests.post(dwain_url, headers=headers)
29
  if response.status_code == 200:
30
  st.write("Uploading!")
31
  with col2:
32
+ st.info("Update Freedman's LIVE SITE FantasyLife Season Long Projections")
33
+ if st.button("Freedman Projection Update (Live Seasonal)", key='reset2'):
34
  response = requests.post(freedman_url, headers=headers)
35
  if response.status_code == 200:
36
  st.write("Uploading!")
37
  with col3:
38
+ st.info("Update the Aggregate LIVE SITE FantasyLife Season Long Projections")
39
+ if st.button("Aggregate Projection Update (Live Seasonal)", key='reset3'):
40
  response = requests.post(agg_url, headers=headers)
41
  if response.status_code == 200:
42
  st.write("Uploading!")
43
+
44
+ with st.container():
45
+ col1, col2, col3 = st.columns([3, 3, 3])
46
+
47
+ with col1:
48
+ st.info("Update Dwain's DEV SITE FantasyLife Season Long Projections")
49
+ if st.button("Dwain Projection Update (Dev Seasonal)", key='reset4'):
50
+ response = requests.post(dev_dwain_url, headers=headers)
51
+ if response.status_code == 200:
52
+ st.write("Uploading!")
53
+ with col2:
54
+ st.info("Update Freedman's DEV SITE FantasyLife Season Long Projections")
55
+ if st.button("Freedman Projection Update (Dev Seasonal)", key='reset5'):
56
+ response = requests.post(dev_freedman_url, headers=headers)
57
+ if response.status_code == 200:
58
+ st.write("Uploading!")
59
+ with col3:
60
+ st.info("Update the Aggregate DEV SITE FantasyLife Season Long Projections")
61
+ if st.button("Aggregate Projection Update (Dev Seasonal)", key='reset6'):
62
+ response = requests.post(dev_agg_url, headers=headers)
63
+ if response.status_code == 200:
64
+ st.write("Uploading!")
65
+
66
  with st.container():
67
  col1, col2, col3 = st.columns([3, 3, 3])
68
 
69
  with col1:
70
+ st.info("Update Dwain's FantasyLife Weekly Projections")
71
  if st.button("Dwain Projection Update (Weekly)", key='reset4'):
72
  response = requests.post(weekly_dwain_url, headers=headers)
73
  if response.status_code == 200:
74
  st.write("Uploading!")
75
  with col2:
76
+ st.info("Update Freedman's FantasyLife Weekly Projections")
77
  if st.button("Freedman Projection Update (Weekly)", key='reset5'):
78
  response = requests.post(weekly_freedman_url, headers=headers)
79
  if response.status_code == 200:
80
  st.write("Uploading!")
81
  with col3:
82
+ st.info("Update the Aggregate FantasyLife Weekly Projections")
83
  if st.button("Aggregate Projection Update (Weekly)", key='reset6'):
84
  response = requests.post(weekly_agg_url, headers=headers)
85
  if response.status_code == 200: