Spaces:
Sleeping
Sleeping
James McCool
commited on
Commit
·
9d5cc55
1
Parent(s):
f53d433
Change.
Browse files- app.py +1 -1
- pull-git.ps1 +8 -0
app.py
CHANGED
|
@@ -2233,7 +2233,7 @@ if selected_tab == 'Manage Portfolio':
|
|
| 2233 |
else:
|
| 2234 |
qb_force = 'No'
|
| 2235 |
if sport_var == 'NASCAR':
|
| 2236 |
-
grid_exclude = st.multiselect("Exclude grids?", options=sorted(list(set(st.session_state['map_dict']
|
| 2237 |
else:
|
| 2238 |
grid_exclude = []
|
| 2239 |
|
|
|
|
| 2233 |
else:
|
| 2234 |
qb_force = 'No'
|
| 2235 |
if sport_var == 'NASCAR':
|
| 2236 |
+
grid_exclude = st.multiselect("Exclude grids?", options=sorted(list(set(st.session_state['map_dict'].values()))), default=[])
|
| 2237 |
else:
|
| 2238 |
grid_exclude = []
|
| 2239 |
|
pull-git.ps1
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
. .\get-ips.ps1
|
| 2 |
+
|
| 3 |
+
foreach ($ip in $global:instances) {
|
| 4 |
+
Write-Host "Updating $ip..."
|
| 5 |
+
ssh -i "C:\Users\mccoo\.ssh\aws-eb" ec2-user@$ip "cd ~/AWS_Portfolio_Manager && git pull origin main && cp app.py application.py && sudo supervisorctl restart streamlit"
|
| 6 |
+
}
|
| 7 |
+
|
| 8 |
+
Write-Host "Done"
|