trohith89 commited on
Commit
9f90df1
·
verified ·
1 Parent(s): 4f570ee

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -248,12 +248,12 @@ st.markdown("""
248
  button.addEventListener('click', function(e) {
249
  e.preventDefault();
250
  const team = this.textContent;
251
- const hiddenButton = document.querySelector(`button[key="hidden_team_${team}_row1"]`) ||
252
- document.querySelector(`button[key="hidden_team_${team}_row2"]`);
253
  if (hiddenButton) {
254
  hiddenButton.click();
255
  }
256
  });
257
  });
258
  </script>
259
- """, unsafe_allow_html=True)
 
248
  button.addEventListener('click', function(e) {
249
  e.preventDefault();
250
  const team = this.textContent;
251
+ const hiddenButton = document.querySelector(`button[data-testid="hidden_team_${team}_row1"]`) ||
252
+ document.querySelector(`button[data-testid="hidden_team_${team}_row2"]`);
253
  if (hiddenButton) {
254
  hiddenButton.click();
255
  }
256
  });
257
  });
258
  </script>
259
+ """, unsafe_allow_html=True)